util

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2019 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Vprint = SetVprint()

Functions

func Delete_value

func Delete_value(lookup_file string, key string) error

func GetLookupPath

func GetLookupPath(namespace string, key string) string

func Hashx

func Hashx(s string) string

func List_all

func List_all(lookup_path string)

func Panic_if

func Panic_if(e error)

func Pop_value

func Pop_value(lookup_file string, key string) (string, error)

func Read_value

func Read_value(lookup_file string, key string) (string, error)

func SetVprint

func SetVprint() func(a ...interface{})

We basically only care about two levels of logging, at least right now

func Store_value

func Store_value(lookup_file string, key string, value string)

func Visit

func Visit(files *[]string) filepath.WalkFunc

Types

type FlagsMode

type FlagsMode int
const (
	FlagNone FlagsMode = iota
	FlagEndOfOpts
	FlagHelp
	FlagList
	FlagDelete
	FlagNamespace
	FlagPop
	FlagVerbose
)

type ParsedArgs

type ParsedArgs struct {
	// contains filtered or unexported fields
}

type ProgramMode

type ProgramMode int
const (
	ModeHelp ProgramMode = iota
	ModeSimpleGet
	ModeSimpleSet
	ModePipeSet
	ModeList
	ModeDelete
)

type StdInContainer

type StdInContainer struct {
	Stdin     string
	Has_stdin bool
}

func Get_stdin

func Get_stdin() (StdInContainer, error)

Jump to

Keyboard shortcuts

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