Documentation ¶
Index ¶
- Constants
- Variables
- func EnsureDir(dirOrFilePath string, fileMode os.FileMode) error
- func EnsureTrailingSlash(path string) string
- func ParseYaml(in []byte, out interface{}) error
- func PtrBool(v bool) *bool
- func PtrFloat32(v float32) *float32
- func PtrInt(v int) *int
- func PtrInt32(v int32) *int32
- func PtrInt64(v int64) *int64
- func ToYaml(in interface{}) ([]byte, error)
Constants ¶
View Source
const YamlContentHeader string = "# DO NOT MODIFY! This file was generated by the Riser platform. Changes will be lost\n"
Variables ¶
View Source
var VersionString = "0.0.0-local"
VersionString is a that's overwritten by the compiler using ldflags
Functions ¶
func EnsureDir ¶
EnsureDir ensures that a directory exists for a given file or directory path. Note that a directory path must have a trailing slash
func EnsureTrailingSlash ¶ added in v0.0.7
func PtrFloat32 ¶ added in v0.0.6
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.