gogenlib

package
v0.0.0-...-622de51 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEntry

func CreateEntry(filename string, existingIdentifiers []string) error

func EnsureConfigFoldersExists

func EnsureConfigFoldersExists() ([]byte, bool)

func GenerateTemplate

func GenerateTemplate(config Generators, runtimeFlags RuntimeFlags)

func GetGogenBasePath

func GetGogenBasePath() string

func GetGogenConfigFilePath

func GetGogenConfigFilePath() string

func GetGogenTemplatesFolderPath

func GetGogenTemplatesFolderPath() string

func WriteConfig

func WriteConfig(yamlStructure YamlStructure) error

Types

type Generators

type Generators struct {
	Name       string
	Identifier string
	Filename   string
}

func IdentifyGenerator

func IdentifyGenerator(identifier string) (Generators, []string, error)

type RuntimeFlags

type RuntimeFlags struct {
	VerboseMode bool
}

type Settings

type Settings struct {
	Verbose             bool
	RemoveExistingFiles bool
}

type YamlStructure

type YamlStructure struct {
	Settings   Settings
	Generators []Generators
}

func GetConfig

func GetConfig() YamlStructure

Jump to

Keyboard shortcuts

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