misc

package
v0.7.2 Latest Latest
Warning

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

Go to latest
Published: May 6, 2014 License: Apache-2.0 Imports: 5 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Caller

func Caller() string

Returns "FileName:LineNum" of caller.

func CallerN

func CallerN(level int) string

Returns "FileName:LineNum" of the Nth caller on the call stack, where level of 0 is the caller of CallerN.

func SanitizeUnrepresentableJSON

func SanitizeUnrepresentableJSON(obj interface{}) interface{}

a function to replace unrepresentable numeric values with string representations

Types

type StopChannel

type StopChannel chan bool

a generic channel which can be closed when you want someone to stop doing something

Jump to

Keyboard shortcuts

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