util

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Difference added in v0.2.0

func Difference(a, b []string) (diff []string)

Difference returns items that exist in b but not in a

func SSMapCopy

func SSMapCopy(src map[string]string) map[string]string

SSMapCopy makes (shallow) copy of src map

func SSMapEqual

func SSMapEqual(a, b map[string]string) bool

SSMapEqual compares maps for equality

func SSMapFilterByKeys added in v0.4.0

func SSMapFilterByKeys(m map[string]string, keys []string) map[string]string

SSMapFilterByKeys returns a new map that contains keys from the keys array existing in the m map.

func SSMapMerge

func SSMapMerge(ms ...map[string]string) map[string]string

SSMapMerge merges maps ms from left to right with overwriting existing keys

Types

type SensitiveWriter added in v0.6.0

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

func NewSensitiveWriter added in v0.6.0

func NewSensitiveWriter(w io.Writer, r *regexp.Regexp) *SensitiveWriter

func (*SensitiveWriter) Write added in v0.6.0

func (s *SensitiveWriter) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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