Documentation ¶
Overview ¶
Package lib contains some functionalities needed for expvastic.
Index ¶
- func DiscardLogger() *logrus.Logger
- func GetLogger(level string) *logrus.Logger
- func IsGCType(key string) bool
- func IsMBType(key string) bool
- func SanitiseURL(url string) (string, error)
- func StringInMapKeys(niddle string, haystack map[string]string) bool
- func StringInSlice(niddle string, haystack []string) bool
- type DummyReadCloser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DiscardLogger ¶
DiscardLogger returns a dummy logger. This is useful for tests when you don't want to actually write to the Stdout.
func SanitiseURL ¶ added in v0.1.0
SanitiseURL prepends a protocol to the url if not defined, and checks if it's a valid url
func StringInMapKeys ¶ added in v0.1.0
StringInMapKeys returns true if niddle is in the haystack's keys
func StringInSlice ¶
StringInSlice returns true if niddle is in the haystack
Types ¶
type DummyReadCloser ¶
type DummyReadCloser struct{}
DummyReadCloser implements io.ReadCloser that does nothing
func (DummyReadCloser) Close ¶
func (DummyReadCloser) Close() error
Click to show internal directories.
Click to hide internal directories.