Documentation
¶
Index ¶
- func ExtractVariablesFrom(in string) []string
- func Fields(in string) []string
- func GetIndentOf(line string) (indent int)
- func GetIndentString(indent int) string
- func GetMostRecentIn(dirs ...string) time.Time
- func If[T Task | AsyncTask](condition bool, then T) T
- func IterateDirsOnly(entries []os.DirEntry) func(func(os.DirEntry) bool)
- func IterateFilesOnly(entries []os.DirEntry) func(func(os.DirEntry) bool)
- func LoadTree(root string, dirs ...[2]string) (map[string]*GenericFile, error)
- func PathToResource(path string) string
- func Pipeline(tasks ...Task) error
- func ResourceToPath(folder_name, resource string) string
- func SimpleSubstitute(in string, env Env) (string, error)
- func SubstituteArray(file *JsonFile, env Env, path string) error
- func SubstituteGenericFile(file *GenericFile, env Env) error
- func SubstituteJsonFile(file *JsonFile, env Env) error
- func SubstituteObject(file *JsonFile, env Env, path string) error
- func SubstituteString(file *JsonFile, env Env, path string, value gjson.Result) error
- func ToAbs(path string) string
- func WriteIndentString(writer io.Writer, indent int)
- type AsyncTask
- type Columns
- type Env
- type GenericFile
- type JsonFile
- type Rows
- type Task
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractVariablesFrom ¶
func GetIndentOf ¶
func GetIndentString ¶
func GetMostRecentIn ¶
func PathToResource ¶
func ResourceToPath ¶
func SubstituteGenericFile ¶
func SubstituteGenericFile(file *GenericFile, env Env) error
func SubstituteJsonFile ¶
func SubstituteString ¶
func WriteIndentString ¶
Types ¶
type GenericFile ¶
func NewGenericFile ¶
func NewGenericFile(ext string, body []byte) *GenericFile
func (*GenericFile) Clone ¶
func (file *GenericFile) Clone() *GenericFile
func (*GenericFile) Formatted ¶
func (file *GenericFile) Formatted() []byte
type JsonFile ¶
type JsonFile struct {
Body []byte
}
func NewJsonFile ¶
func (*JsonFile) ExpectField ¶
Click to show internal directories.
Click to hide internal directories.