config

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: MIT Imports: 8 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 {
	Version     string `json:"version" yaml:"version"`
	SpecFile    string `json:"spec" yaml:"spec"`
	Generation  string `json:"generate" yaml:"generate"`
	PackageName string `json:"package" yaml:"package"`
	GoFileName  string `json:"gofile" yaml:"gofile"`
	OutputPath  string `json:"output" yaml:"output"`
	VerboseFlag bool   `json:"verbose" yaml:"verbose"`
	External    []struct {
		Rules     []string `json:"rules" yaml:"rules"`
		Operators bool     `json:"operators" yaml:"operators"`
		Name      string   `json:"name" yaml:"name"`
		Path      string   `json:"path" yaml:"path"`
	} `json:"external" yaml:"external"`
}

func ReadConfig

func ReadConfig(stderr io.Writer, dir, filename string) (string, *Config, error)

Jump to

Keyboard shortcuts

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