helpers

package
v0.20.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2023 License: MIT Imports: 14 Imported by: 13

Documentation

Index

Constants

View Source
const DefaultConfigPath = "./bobgen.yaml"

Variables

This section is empty.

Functions

func DefaultOutputs added in v0.17.1

func DefaultOutputs(destination, pkgname string, noFactory bool, templates *Templates) []*gen.Output

func GetConfigFromFile added in v0.17.2

func GetConfigFromFile[DriverConfig any](configPath, driverConfigKey string) (gen.Config, DriverConfig, error)

func GetConfigFromProvider added in v0.17.2

func GetConfigFromProvider[DriverConfig any](provider koanf.Provider, driverConfigKey string) (gen.Config, DriverConfig, error)

func Version

func Version() string

Types

type Templates added in v0.17.1

type Templates struct {
	Models  []fs.FS
	Factory []fs.FS
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL