Versions in this module Expand all Collapse all v0 v0.0.1 Aug 28, 2025 Changes in this version + func GenBindFunc(conf *GenFuncConf) (string, error) + func GenFile(config *GenFileConf) (string, error) + func PackageImport(val any) [2]string + type GenFileConf struct + Entities []GenFileEntityConf + ExtraImports [][2]string + type GenFileEntityConf struct + Actions []any + ConfigBuilder func(act any) *GenFuncConf + type GenFuncConf struct + IgnoreFields []string + SourcePkgName string + TargetPkgName string + func NewGenFuncConf(source, target, action any) *GenFuncConf + func (c *GenFuncConf) WithIgnoreFields(fields ...string) *GenFuncConf + func (c *GenFuncConf) WithSourcePkgName(pkgName string) *GenFuncConf + func (c *GenFuncConf) WithTargetPkgName(pkgName string) *GenFuncConf + type Option func(*Options) + func ClearOnNilField(fields ...string) Option + func IgnoreField(fields ...string) Option + func IgnoreSetZeroField(fields ...string) Option + func KeepFieldsOnly(fields ...string) Option + type Options struct + func NewBindOptions(options ...Option) *Options + func (o *Options) CanSetField(field string) bool + func (o *Options) CanSetZero(field string) bool + func (o *Options) ClearOnNil(field string) bool + func (o *Options) IgnoreSetZero(field string) bool