Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateDefaultContext ¶
func CreateDefaultContext() (context.Context, context.CancelFunc)
CreateDefaultContext will create a default context which will be cancelled if the program is terminated The terminal state will be automatically restored if it was altered in any way
func RandHexString ¶
RandHexString generates a random hexadecimal string
func SortedMapKeys ¶
func StringSliceContains ¶
StringSliceContains tells whether a contains x.
Types ¶
type Done ¶
type Done struct {
// contains filtered or unexported fields
}
Done is a lazily created channel which can be used to signal clients when an action is done It's similar to context.Context's Done function
Click to show internal directories.
Click to hide internal directories.