util

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: BSD-3-Clause, MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyContext added in v0.0.10

func CopyContext(orig *build.Context) *build.Context

func DuplicateStrings

func DuplicateStrings(a []string) []string

func StringsAppend

func StringsAppend(a []string, val string) []string

func StringsContains

func StringsContains(a []string, val string) bool

func StringsRemoveAll

func StringsRemoveAll(a []string, val string) []string

func StringsSame

func StringsSame(a1, a2 []string) bool

StringsSame returns true if the string slices contain the same elements ignoring order.

func TagsIntersect

func TagsIntersect(m1, m2 map[string]bool) bool

Types

type Environ

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

func NewEnviron

func NewEnviron() *Environ

func (*Environ) Environ

func (e *Environ) Environ() []string

func (*Environ) Index

func (e *Environ) Index(key string) int

func (*Environ) Lookup

func (e *Environ) Lookup(key string) (value string, found bool)

func (*Environ) Set

func (e *Environ) Set(key, value string)

Jump to

Keyboard shortcuts

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