Documentation ¶
Index ¶
- Constants
- func MapDataToTemplate(raw []byte, match map[string]string) []byte
- func PathSeparator() string
- func WorkingDirectory() string
- type Environment
- func (environment *Environment) GetEnvBool(identifier string) (bool, bool)
- func (environment *Environment) GetEnvFloat(identifier string) (float64, bool)
- func (environment *Environment) GetEnvInt(identifier string) (int, bool)
- func (environment *Environment) GetEnvString(identifier string) (string, bool)
- func (environment *Environment) LoadVariables(path ...string)
- type Path
- func (path Path) BackDir() Path
- func (path Path) Create() (*os.File, error)
- func (path Path) Dir(directory string) Path
- func (path Path) DoesNotExist() bool
- func (path Path) Exists() bool
- func (path Path) File(file string) Path
- func (path Path) IsDirectory() bool
- func (path Path) IsFile() bool
- func (path Path) MkDir() error
- func (path Path) Read() ([]byte, error)
- func (path Path) Remove() error
- func (path Path) ToString() string
- func (path Path) Write(bytes []byte) error
- type PathType
Constants ¶
View Source
const ( StartIdentifier uint8 = '<' EndIdentifier uint8 = '>' EmptyIdentifier string = "" InPlaceholder bool = true NotInPlaceholder bool = false TimeFormat string = "2006-01-02 15:04:05" )
View Source
const (
DeclarationSeparator = "="
)
View Source
const (
DefaultFilePermissions os.FileMode = 0755
)
Variables ¶
This section is empty.
Functions ¶
func PathSeparator ¶
func PathSeparator() string
func WorkingDirectory ¶
func WorkingDirectory() string
Types ¶
type Environment ¶
type Environment struct {
// contains filtered or unexported fields
}
func NewEnvironment ¶
func NewEnvironment() (env *Environment)
func (*Environment) GetEnvBool ¶
func (environment *Environment) GetEnvBool(identifier string) (bool, bool)
GetEnvBool returns (value, found)
func (*Environment) GetEnvFloat ¶
func (environment *Environment) GetEnvFloat(identifier string) (float64, bool)
GetEnvFloat returns (value, found)
func (*Environment) GetEnvInt ¶
func (environment *Environment) GetEnvInt(identifier string) (int, bool)
GetEnvInt returns (value, found)
func (*Environment) GetEnvString ¶
func (environment *Environment) GetEnvString(identifier string) (string, bool)
GetEnvString returns (value, found)
func (*Environment) LoadVariables ¶
func (environment *Environment) LoadVariables(path ...string)
type Path ¶
type Path struct {
// contains filtered or unexported fields
}
func (Path) DoesNotExist ¶
func (Path) IsDirectory ¶
Click to show internal directories.
Click to hide internal directories.