-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfig.go
More file actions
12 lines (10 loc) · 791 Bytes
/
Copy pathconfig.go
File metadata and controls
12 lines (10 loc) · 791 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
package docstoregen
import "log/slog"
// Config represents the configuration options for generating query code.
type Config struct {
OutPath string // OutPath specifies the path where the query code will be generated. Example: "/path/to/project/pkg/query"
OutFile string // OutFile specifies the name of the query code file. The default value is "gen.go".
queryPkgName string // queryPkgName specifies the name of the package where the query code will be generated.
importPkgPaths []string // importPkgPaths specifies the import paths of the packages that the generated query code will import.
LoggerHandler slog.Handler // LoggerHandler specifies the handler for the logger used by the generator. Example: slog.NewJSONHandler(os.Stdout, nil)
}