utils

package
Version: v0.0.0-...-d2dfa33 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareStringSlices

func CompareStringSlices(a, b []string) bool

Types

type Logger

type Logger interface {
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	// Should call os.Exit(1) after logging
	Fatalf(format string, args ...interface{})
	// Should call panic() after logging
	Panicf(format string, args ...interface{})
}

Modeled after https://github.com/Sirupsen/logrus

type StringSet

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

func NewStringSet

func NewStringSet() StringSet

func (StringSet) Add

func (c StringSet) Add(value string)

func (StringSet) AddMany

func (c StringSet) AddMany(values []string)

func (StringSet) GetAll

func (c StringSet) GetAll() []string

func (StringSet) Has

func (c StringSet) Has(value string) bool

func (StringSet) Remove

func (c StringSet) Remove(value string)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL