sqlx
sqlx copied to clipboard
why I got this error when doing just go get
$ go get -v github.com/jmoiron/sqlx
github.com/jmoiron/sqlx (download)
github.com/jmoiron/sqlx/reflectx
github.com/jmoiron/sqlx
# github.com/jmoiron/sqlx
jmoiron/sqlx/named_context.go:41: n.Stmt.ExecContext undefined (type *Stmt has no field or method ExecContext)
jmoiron/sqlx/named_context.go:41: not enough arguments to return
jmoiron/sqlx/named_context.go:51: n.Stmt.QueryContext undefined (type *Stmt has no field or method QueryContext)
jmoiron/sqlx/named_context.go:51: not enough arguments to return
jmoiron/sqlx/sqlx_context.go:20: db.PingContext undefined (type *DB has no field or method PingContext)
jmoiron/sqlx/sqlx_context.go:122: cannot use db (type *DB) as type namedPreparerContext in argument to prepareNamedContext:
*DB does not implement namedPreparerContext (missing PrepareContext method)
jmoiron/sqlx/sqlx_context.go:128: cannot use db (type *DB) as type ExtContext in argument to NamedQueryContext:
*DB does not implement ExtContext (missing ExecContext method)
jmoiron/sqlx/sqlx_context.go:134: cannot use db (type *DB) as type ExtContext in argument to NamedExecContext:
*DB does not implement ExtContext (missing ExecContext method)
jmoiron/sqlx/sqlx_context.go:182: undefined: sql.TxOptions
jmoiron/sqlx/sqlx_context.go:203: undefined: sql.TxOptions
jmoiron/sqlx/sqlx_context.go:134: too many errors
sorry I tried on another laptop and its fine, so the problem just in my VPS, closing this issue