Documentation ¶
Overview ¶
Package util contains a few simple utilites that has no internal dependencies. This is to encourage reuse of code.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type StringList ¶ added in v0.0.11
type StringList []string
StringList is a list of strings and useful methods
func (*StringList) Add ¶ added in v0.0.11
func (s *StringList) Add(values ...string)
Add a list of strings
func (*StringList) Contains ¶ added in v0.0.11
func (s *StringList) Contains(value string) bool
Contains returns true if s contains value
func (*StringList) Join ¶ added in v0.0.11
func (s *StringList) Join(sep string) string
Join concatenates elements fo the list with given separator
func (*StringList) Sprint ¶ added in v0.0.11
func (s *StringList) Sprint(a ...interface{})
Sprint adds a string using fmt.Sprint syntax
func (*StringList) Sprintf ¶ added in v0.0.11
func (s *StringList) Sprintf(format string, a ...interface{})
Sprintf adds a string using fmt.Sprintf syntax
Click to show internal directories.
Click to hide internal directories.