Documentation
¶
Index ¶
- func Exists(name string) bool
- func Expand(s string) ([]int, error)
- func Format(pattern string, values map[string]interface{}) string
- func GetKeys(m map[string]interface{}) []string
- func In(l []int, x int) bool
- func InString(l []string, x string) bool
- func LoadTomlFile(filename string, v interface{}) error
- func SafeNormalize(p string) string
- func Update(dst map[string]interface{}, src map[string]interface{})
- type KernelOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Format ¶
Format accepts a string pattern of format "something {key}, something" and replaces all occurences of {<key>} from the values map.
func LoadTomlFile ¶
LoadTomlFile loads toml using "github.com/naoina/toml"
func SafeNormalize ¶ added in v1.2.0
SafeNormalize avoids relative path hacks by making sure the path does not have any ../ in it before normalization
Types ¶
type KernelOptions ¶ added in v1.2.0
func GetKernelOptions ¶ added in v1.2.0
func GetKernelOptions() KernelOptions
GetKernelOptions Get kernel cmdline arguments
func (KernelOptions) GetLast ¶ added in v1.2.0
func (k KernelOptions) GetLast() map[string]interface{}
func (KernelOptions) Is ¶ added in v1.2.0
func (k KernelOptions) Is(key string) bool
func (KernelOptions) String ¶ added in v1.2.0
func (k KernelOptions) String(keys ...string) string
Click to show internal directories.
Click to hide internal directories.