code: func ParseAction(action string) (Action, error) {
  	if action, ok := nameToAction[action]; ok {
  		return action, nil
  	}
  	return 0, fmt.Errorf("unexpected action %q", action)
  }
docs: // ParseAction parses the action name into an.