Documentation ¶
Overview ¶
Package utils contains a bunch of small functions used by task/ subpackages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsTransientAPIError ¶
IsTransientAPIError returns true if error from Google API client indicates an error that can go away on its own in the future.
func ValidateKVList ¶
ValidateKVList makes sure each string in the list is valid key-value pair.
Types ¶
type KVList ¶
type KVList []KV
KVList if list of KV pairs.
func KVListFromMap ¶
KVListFromMap converts a map to KVList.
func UnpackKVList ¶
UnpackKVList takes validated list of k-v pair strings and returns list of structs.
Silently skips malformed strings. Use ValidateKVList to detect them before calling this function.
Click to show internal directories.
Click to hide internal directories.