Skip to content

Commit

Permalink
Merge pull request #26 from wangbokun/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
wangbokun authored Dec 11, 2019
2 parents 3b355af + b491d06 commit 78dc453
Show file tree
Hide file tree
Showing 12 changed files with 388 additions and 148 deletions.
4 changes: 2 additions & 2 deletions db/mysql/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"time"

"go/codec"
"github.com/wangbokun/go/codec"
"github.com/wangbokun/go/log"
// mysql driver
_ "github.com/go-sql-driver/mysql"
Expand Down Expand Up @@ -174,7 +174,7 @@ func (my *MySQL) Get(ctx context.Context, cmd string, handle func(row map[string
if values[i] != nil {
result[cols[i].Name()] = string(values[i].([]byte))
}
case "NullInt64", "int", "int8", "int32", "uint32":
case "NullInt64", "int", "int8", "int32", "int64","uint32":
if values[i] != nil {
result[cols[i].Name()], err = strconv.Atoi(string(values[i].([]byte)))
if err != nil {
Expand Down
146 changes: 0 additions & 146 deletions db/mysql/mysql.go.bak

This file was deleted.

1 change: 1 addition & 0 deletions env/.env
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
test="hello"
1 change: 1 addition & 0 deletions env/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
读取ENV文件到环境变量中,使用os.Getenv("test")直接获取变量值
Loading

0 comments on commit 78dc453

Please sign in to comment.