Versions in this module Expand all Collapse all v0 v0.0.4 Jul 13, 2015 Changes in this version + const BitsPerWord + const DEBUG + const ERROR + const FATAL + const INFO + const MaxInt + const MaxUint + const MinInt + const NOLOGGING + const WARN + var EMPTY struct + var ErrLogLevel int = ERROR + var LogColor = map[int]string + var LogLevel int = ERROR + var LogLevelWords map[string]int = map[string]int + var LogPrefix = map[int]string + func CloseEnuf(a, b float64) bool + func CloseInt(a, b int) bool + func CoerceFloat(v interface{}) (float64, error) + func CoerceFloatShort(v interface{}) float64 + func CoerceInt(v interface{}) (int, error) + func CoerceInt64(v interface{}) (int64, error) + func CoerceInt64Short(v interface{}) int64 + func CoerceIntShort(v interface{}) int + func CoerceString(v interface{}) (string, error) + func CoerceStringShort(v interface{}) string + func CoerceUint(v interface{}) (uint64, error) + func CoerceUintShort(v interface{}) uint64 + func Debug(v ...interface{}) + func Debugf(format string, v ...interface{}) + func DeleteJson(url, body string) (ret string, err error, resp *http.Response) + func DiscardStandardLogger() + func DoLog(depth, logLvl int, msg string) + func Error(v ...interface{}) + func Errorf(format string, v ...interface{}) + func Fetch(url string) (ret []byte, err error) + func FetchResp(url string) (ret []byte, err error, resp *http.Response) + func GetErrLogger() *log.Logger + func GetLogger() *log.Logger + func Info(v ...interface{}) + func Infof(format string, v ...interface{}) + func IsTerminal() bool + func JsonString(v interface{}) string + func Log(logLvl int, v ...interface{}) + func LogD(depth int, logLvl int, v ...interface{}) + func LogLevelSet(levelWord string) + func LogP(logLvl int, prefix string, v ...interface{}) + func LogPf(logLvl int, prefix string, format string, v ...interface{}) + func LogTracef(logLvl int, format string, v ...interface{}) + func Logf(logLvl int, format string, v ...interface{}) + func MakeJsonList(b []byte) []byte + func NewUid() uint64 + func PostForm(url, body string) (ret string, err error, resp *http.Response) + func PostJson(url, body string) (ret string, err error, resp *http.Response) + func PutJson(url, body string) (ret string, err error, resp *http.Response) + func SetColorIfTerminal() + func SetColorOutput() + func SetErrLogger(l *log.Logger, logLevel string) + func SetLogger(l *log.Logger, logLevel string) + func SetStopper(f func()) + func SetupLogging(lvl string) + func SetupLoggingLong(lvl string) + func StartTest() + func StopCheck() + func WaitFor(check func() bool, timeoutSecs int) + func Warn(v ...interface{}) + func Warnf(format string, v ...interface{}) + type DevNull struct + func (DevNull) Write(p []byte) (int, error) + type JsonHelper map[string]interface + func (j JsonHelper) Bool(n string) bool + func (j JsonHelper) BoolSafe(n string) (val bool, ok bool) + func (j JsonHelper) Get(n string) interface{} + func (j JsonHelper) Helper(n string) JsonHelper + func (j JsonHelper) Helpers(n string) []JsonHelper + func (j JsonHelper) Int(n string) int + func (j JsonHelper) Int64(n string) int64 + func (j JsonHelper) Int64Safe(n string) (int64, bool) + func (j JsonHelper) IntSafe(n string) (int, bool) + func (j JsonHelper) Ints(n string) []int + func (j JsonHelper) List(n string) []interface{} + func (j JsonHelper) Map(n string) map[string]interface{} + func (j JsonHelper) MapSafe(n string) (map[string]interface{}, bool) + func (j JsonHelper) PrettyJson() []byte + func (j JsonHelper) String(n string) string + func (j JsonHelper) StringSafe(n string) (string, bool) + func (j JsonHelper) Strings(n string) []string + func (j JsonHelper) Uint64(n string) uint64 + func JsonHelperHttp(method, urlStr string, data interface{}) (JsonHelper, error) + func NewJsonHelper(b []byte) JsonHelper + func NewJsonHelperFromResp(resp *http.Response) (JsonHelper, error) + func NewJsonHelperReader(r io.Reader) (jh JsonHelper, err error) + func NewJsonHelpers(b []byte) []JsonHelper + type JsonInterface struct + func (j *JsonInterface) Encode() ([]byte, error) + func (j *JsonInterface) Float() (float32, error) + func (j *JsonInterface) Int() (int, error) + func (j *JsonInterface) MarshalJSON() ([]byte, error) + func (j *JsonInterface) String() (string, error) + func (j *JsonInterface) UnmarshalJSON(raw []byte) error + func (j JsonInterface) FloatSh() float32 + func (j JsonInterface) IntSh() int + func (j JsonInterface) StringSh() string + type JsonRawWriter struct + func (m *JsonRawWriter) MarshalJSON() ([]byte, error) + func (m *JsonRawWriter) Raw() json.RawMessage + type Uid uint64 + func (u *Uid) String() string