13 lines
278 B
Go
13 lines
278 B
Go
package gumble
|
|
|
|
// ContextActions is a map of ContextActions.
|
|
type ContextActions map[string]*ContextAction
|
|
|
|
func (ca ContextActions) create(action string) *ContextAction {
|
|
contextAction := &ContextAction{
|
|
Name: action,
|
|
}
|
|
ca[action] = contextAction
|
|
return contextAction
|
|
}
|