Documentation ¶
Index ¶
- func AwaitWaitGroup(wg *sync.WaitGroup, timeout time.Duration) bool
- func CommandToString(d *commandpb.Command) string
- func HistoryEventToString(e *historypb.HistoryEvent) string
- func IsInterfaceNil(i interface{}) bool
- func MergeDictoRight(src map[string]string, dest map[string]string)
- func MergeDicts(dic1 map[string]string, dic2 map[string]string) (resultDict map[string]string)
- type OnceCell
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwaitWaitGroup ¶
AwaitWaitGroup calls Wait on the given wait Returns true if the Wait() call succeeded before the timeout Returns false if the Wait() did not return before the timeout
func CommandToString ¶
CommandToString convert Command to string
func HistoryEventToString ¶
func HistoryEventToString(e *historypb.HistoryEvent) string
HistoryEventToString convert HistoryEvent to string
func IsInterfaceNil ¶
func IsInterfaceNil(i interface{}) bool
IsInterfaceNil check if interface is nil
func MergeDictoRight ¶
MergeDictoRight copies the contents of src to dest
Types ¶
type OnceCell ¶
type OnceCell struct {
// contains filtered or unexported fields
}
A OnceCell attempts to match the semantics of Rust's `OnceCell`, but only stores strings, since that's what's needed at the moment. Could be changed to use interface{} to be generic.
func LazyOnceCell ¶
func LazyOnceCell(fetcher fetcher) OnceCell
LazyOnceCell creates a cell with no initial value, the provided function will be called once and only once the first time OnceCell.Get is called
func PopulatedOnceCell ¶
PopulatedOnceCell creates an already-initialized cell