config

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	RootPkg string `toml:"RootPkg"` // Root package name for the project
	Models  struct {
		Pkg  string   `toml:"Pkg"`  // absolute package name where models are located
		Skip []string `toml:"Skip"` // Slice of models(Structs) to skip
	} `toml:"Models"`

	Output struct {
		ServiceName  string `toml:"ServiceName"`  // simple name for the services default: services
		HandlersName string `toml:"HandlersName"` // simple name for the handlers default: handlers
		OutDir       string `toml:"OutDir"`       // Directory where to create new packages: default "."
	} `toml:"Output"`
	Overrides Overrides `toml:"overrides"`
}

Config struct represents the configuration parameters

func LoadConfig

func LoadConfig(path string) (*Config, error)

type Overrides added in v0.0.6

type Overrides struct {
	Types  map[string]string `toml:"types"`
	Fields map[string]string `toml:"fields"`
}

Jump to

Keyboard shortcuts

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