
Go
lihaojie1996
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Go丨语言对数据库操作报错 panic: dial tcp 127.0.0.1:3306: connectex: No connection could be made because the target machine actively refused
panic: dial tcp 127.0.0.1:3306: connectex: No connection could be made because the target machine actively refused it. 以上报的错是拒绝访问 ,所以开启服务就ok了!原创 2017-02-23 17:28:57 · 5130 阅读 · 0 评论 -
Go丨语言对数据库操作报错 panic: dial tcp 127.0.0.1:3306: connectex: No connection could be made because the target machine actively refused
panic: dial tcp 127.0.0.1:3306: connectex: No connection could be made because the target machine actively refused it. 以上报的错是拒绝访问 ,所以开启服务就ok了!原创 2017-02-23 17:27:45 · 10293 阅读 · 5 评论 -
Go丨语言对MySQL数据库的增、删、改、查操作
1、建立数据库名为: go_test_db2、建表名为:userinfo字段: uid int username varcharlanguage varcharcreated varchar3、对数据库操作package main import ( "database/sql" "fmt" _ "github.c原创 2017-02-23 17:27:38 · 430 阅读 · 0 评论 -
Go丨语言package github.com/Go-SQL-Driver/MySQL: exec: "git": executable file not found in %PATH%解决方法
Go语言在添加第三方MySQL驱动的时候报错:go: missing Git command. See https://golang.org/s/gogetcmdpackage github.com/Go-SQL-Driver/MySQL: exec: "git": executable file not found in %PATH%根据以上报错语句可以看出来是没有找到%PATH%原创 2017-02-23 17:27:08 · 25394 阅读 · 1 评论 -
Go丨语言学习笔记--switch
Java语言与Go语言的switch对比Go语言switch str { case "yes" : do something ... case "no" do something ... default : do something ...}Java 语言switch (str){ case "yes": do somethi原创 2017-02-23 17:27:00 · 273 阅读 · 0 评论 -
Go丨语言学习笔记--func
Java语言跟Go语言的函数比较Go语言func funcName(input type1,input type2,......)(output type1,output type2,......){ //do something ..... return value1,value2.....}Java 语言public void method1(intput type1,原创 2017-02-23 17:27:03 · 769 阅读 · 0 评论