()
| 34 | } |
| 35 | |
| 36 | func locationCodeEnvOption() cel.EnvOption { |
| 37 | return cel.Function("locationCode", |
| 38 | cel.Overload("locationCode_string", []*cel.Type{cel.StringType}, cel.StringType, |
| 39 | cel.UnaryBinding(locationCode))) |
| 40 | } |
| 41 | |
| 42 | func locationCode(ip ref.Val) ref.Val { |
| 43 | switch ip.(types.String) { |