Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangleitao committed Sep 13, 2024
1 parent 776d993 commit ef1c91c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions field/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ func NewField(table, column string, opts ...Option) Field {
return Field{expr: expr{col: toColumn(table, column, opts...)}}
}

// NewFieldRaw create new field by native sql
func NewFieldRaw(rawSql string, vars ...interface{}) Field {

Check failure on line 36 in field/export.go

View workflow job for this annotation

GitHub Actions / runner / golangci-lint

[golangci] reported by reviewdog 🐶 var-naming: func parameter rawSql should be rawSQL (revive) Raw Output: field/export.go:36:18: var-naming: func parameter rawSql should be rawSQL (revive) func NewFieldRaw(rawSql string, vars ...interface{}) Field { ^
return Field{expr: expr{e: clause.Expr{SQL: rawSql, Vars: vars}}}
}
Expand Down

0 comments on commit ef1c91c

Please sign in to comment.