String returns a string representation of the type.
()
| 40 | |
| 41 | // String returns a string representation of the type. |
| 42 | func (t Type) String() string { |
| 43 | switch t { |
| 44 | default: |
| 45 | return "" |
| 46 | case Null: |
| 47 | return "Null" |
| 48 | case False: |
| 49 | return "False" |
| 50 | case Number: |
| 51 | return "Number" |
| 52 | case String: |
| 53 | return "String" |
| 54 | case True: |
| 55 | return "True" |
| 56 | case JSON: |
| 57 | return "JSON" |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | // Result represents a json value that is returned from Get(). |
| 62 | type Result struct { |
no outgoing calls