-
Notifications
You must be signed in to change notification settings - Fork 127
Lowercase replace in strings? #57
Copy link
Copy link
Open
Description
template
package xmpl
import (
"github.com/jmoiron/sqlx"
)
type Types []Type
func GetTypes(db *sqlx.DB) (Types, error) {
result := Types{}
err := db.Select(&result, "SELECT * FROM table;")
return result, err
}generated with
//go:generate genny -in=$GOFILE -out=gen-$GOFILE gen "Type=Operation table=operation"
will replace table by Operation, but not operation:
// This file was automatically generated by genny.
// Any changes will be lost if this file is regenerated.
// see https://github.com/cheekybits/genny
package operation
import "github.com/jmoiron/sqlx"
type Operations []Operation
func GetOperations(db *sqlx.DB) (Operations, error) {
result := Operations{}
err := db.Select(&result, "SELECT * FROM Operation;")
return result, err
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels