Skip to content

Commit 782e164

Browse files
authored
Merge pull request #1 from xfali/simple-mod
使用go mod管理依赖
2 parents a2b3242 + 2a9b726 commit 782e164

29 files changed

+8
-6678
lines changed

go.mod

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module github.com/xfali/gobatis
2+
3+
go 1.11
4+
5+
require github.com/go-sql-driver/mysql v1.4.1

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
github.com/go-sql-driver/mysql v1.4.1 h1:g24URVg0OFbNUTx9qqY1IRZ9D9z3iPyi5zKhQZpNwpA=
2+
github.com/go-sql-driver/mysql v1.4.1/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=

test/sql_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import (
1212
"github.com/xfali/gobatis"
1313
"github.com/xfali/gobatis/factory"
1414
"github.com/xfali/gobatis/logging"
15+
_ "github.com/go-sql-driver/mysql"
1516
"testing"
1617
)
1718

transaction/mysql_transaction.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ package transaction
1111
import (
1212
"context"
1313
"database/sql"
14-
_ "github.com/go-sql-driver/mysql"
1514
"github.com/xfali/gobatis/common"
1615
"github.com/xfali/gobatis/connection"
1716
"github.com/xfali/gobatis/datasource"

vendor/github.com/go-sql-driver/mysql/AUTHORS

Lines changed: 0 additions & 98 deletions
This file was deleted.

vendor/github.com/go-sql-driver/mysql/CHANGELOG.md

Lines changed: 0 additions & 167 deletions
This file was deleted.

vendor/github.com/go-sql-driver/mysql/CONTRIBUTING.md

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)