Use commons for case changes
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"context"
|
||||
"reflect"
|
||||
|
||||
"git.gsuntres.com/general/commons"
|
||||
"git.gsuntres.com/general/mongo"
|
||||
)
|
||||
|
||||
@@ -24,7 +25,7 @@ func BuildDeleteOne(col map[string]any) {
|
||||
// create function signature
|
||||
variadic := false
|
||||
funcType := reflect.FuncOf(in, out, variadic)
|
||||
deleteOneName := fmt.Sprintf("%s%s", "Delete", caseString.String(singular))
|
||||
deleteOneName := fmt.Sprintf("%s%s", "Delete", commons.StringTitle(singular))
|
||||
fields = append(fields, reflect.StructField{
|
||||
Name: deleteOneName,
|
||||
Type: funcType,
|
||||
|
||||
Reference in New Issue
Block a user