Merge pull request #1328 from lgyaxx/patch-1

Update gdb_model_fields.go
This commit is contained in:
John Guo
2021-07-08 21:18:42 +08:00
committed by GitHub

View File

@ -90,7 +90,7 @@ func (m *Model) FieldsStr(prefix ...string) string {
}
// GetFieldsStr retrieves and returns all fields from the table, joined with char ','.
// The optional parameter `prefix` specifies the prefix for each field, eg: FieldsStr("u.").
// The optional parameter `prefix` specifies the prefix for each field, eg: GetFieldsStr("u.").
func (m *Model) GetFieldsStr(prefix ...string) string {
prefixStr := ""
if len(prefix) > 0 {