code: func (pe *PolicyEffect) UnmarshalText(b []byte) error {
  	*pe = string(b) == "allow" || string(b) == "sudo"
  	return nil
  }
docs: // UnmarshalText implements the encoding.TextUnmarshaler interface, used for
  // JSON unmarshaling.