Skip to content

Commit 5ec60c2

Browse files
committed
add requirements to Config field comments
1 parent 71f003c commit 5ec60c2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

dsn.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ var (
2929
// Config is a configuration parsed from a DSN string
3030
type Config struct {
3131
User string // Username
32-
Passwd string // Password
32+
Passwd string // Password, requires User
3333
Net string // Network type
34-
Addr string // Network address
34+
Addr string // Network address, requires Net
3535
DBName string // Database name
3636
Params map[string]string // Connection parameters
3737
Collation string // Connection collation

0 commit comments

Comments
 (0)