app

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 12, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File string

Functions

func LookupByKeyEqualFold

func LookupByKeyEqualFold(m map[string]string, s string) (string, bool)

func LookupByKeyFn

func LookupByKeyFn(m map[string]string, s string, compareFn func(string, string) bool) (string, bool)

func ReadMergedInto

func ReadMergedInto(c *Config) error

func StringInSlice

func StringInSlice(ss []string, s string) bool

func StringInSliceEqualFold

func StringInSliceEqualFold(ss []string, s string) bool

func StringInSliceFn

func StringInSliceFn(ss []string, s string, compareFn func(string, string) bool) bool

Types

type Config

type Config struct {
	WhoAmiI string `yaml:"who_am_i"`
}

func NewConfig

func NewConfig() *Config

func (*Config) String

func (c *Config) String() string

func (*Config) Validate

func (c *Config) Validate() error

func (*Config) Write

func (c *Config) Write() error

func (*Config) WriteToFile

func (c *Config) WriteToFile(file string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL