config

package
v0.0.0-...-87137c7 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conf

type Conf struct {
	Rendering `yaml:"generate,omitempty"`
	Root      string `yaml:"root,omitempty"`
}

A codegen.yaml config file, with types defined for better control

func Load

func Load(configFile string) Conf

type ParameterSettings

type ParameterSettings struct {
	Min      int      `yaml:"min,omitempty"`
	Max      int      `yaml:"max,omitempty"`
	Exact    int      `yaml:"exact,omitempty"`
	Pointers bool     `yaml:"pointers"`
	Types    []string `yaml:"types,omitempty"`
}

A Parameter defines how the parameters should be generated

type Render

type Render struct {
	Type       string            `yaml:"type,omitempty"`
	Numeric    bool              `yaml:"numeric,omitempty"`
	Parameters ParameterSettings `yaml:"parameters,omitempty"`
}

A render is a specific type and parameter settings for a thing like a function

type Rendering

type Rendering struct {
	Language string            `yaml:"language,omitempty"`
	Files    []string          `yaml:"files,omitempty"`
	Type     string            `yaml:"type,omitempty"`
	Renders  map[string]Render `yaml:"render,omitempty"`
}

A rendering holds parameters for a rendering session

Jump to

Keyboard shortcuts

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