Documentation
¶
Index ¶
Constants ¶
View Source
const ( ErrMainGoUndefined = "(main func is missing)" ErrDefaultPipesUndefined = "(default pipes file is missing)" )
View Source
const ( MainGotempl = `` /* 995-byte string literal not displayed */ PipesGo = `` /* 1423-byte string literal not displayed */ )
View Source
const ( // The main version number that is being run at the moment. Version = "v0.4.0" // A pre-release marker for the version. If this is "" (empty string) // then it means that it is a final release. Otherwise, this is a pre-release // such as "dev" (in development), "beta", "rc1", etc. VersionPrerelease = "" )
Defining Consts
View Source
const (
//ErrMissingOnDisk Expected error for accessing invalid file or directory
ErrMissingOnDisk = "(file or directory is missing)"
)
Variables ¶
View Source
var ( GitCommit string GitDescribe string )
The git commit that was compiled. This will be filled in by the compiler.
Functions ¶
This section is empty.
Types ¶
type Flat ¶
type Flat struct { MainGo string GoTemplate string GoInputs []goInput DefaultPipes string CustomPipes string // contains filtered or unexported fields }
Flat struct
type FlatBuilder ¶ added in v0.3.0
type FlatBuilder interface { EvalGoInputs(files []string) error EvalGoPipes(file string) error EvalMainGo() error Flat() *Flat }
Builder pattern seems to be the most appropriate structure for building a `Flat` struct
func NewFlatBuilder ¶ added in v0.3.0
func NewFlatBuilder(baseDir, template string) (FlatBuilder, error)
NewFlatBuilder initializes a new instance of `FlatBuilder` interface
Click to show internal directories.
Click to hide internal directories.