Skip to content

Commit

Permalink
fix: golint
Browse files Browse the repository at this point in the history
  • Loading branch information
qqxhb committed Oct 17, 2024
1 parent 5986eb6 commit c28792a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,9 +115,8 @@ func (cfg *Config) WithImportPkgPath(paths ...string) {
cfg.importPkgPaths = append(cfg.importPkgPaths, paths...)
}

// WithSQLNullType
// WithSQLNullType configures the types of fields to use their SQL nullable counterparts.
/**
* This function configures the types of fields to use their SQL nullable counterparts.
*
* @param {boolean} all - If true, all basic types of fields will be replaced with their `sql.NullXXX` types.
* If false, only fields that are allowed to be null will be replaced with `sql.NullXXX` types.
Expand Down
3 changes: 1 addition & 2 deletions field_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ var (
return opt(f)
}
}
// WithSQLNullType
// WithSQLNullType configures the types of fields to use their SQL nullable counterparts.
/**
* This function configures the types of fields to use their SQL nullable counterparts.
*
* @param {boolean} all - If true, all basic types of fields will be replaced with their `sql.NullXXX` types.
* If false, only fields that are allowed to be null will be replaced with `sql.NullXXX` types.
Expand Down

0 comments on commit c28792a

Please sign in to comment.