(value interface{})
| 144 | } |
| 145 | |
| 146 | func ToString(value interface{}) string { |
| 147 | switch v := value.(type) { |
| 148 | case string: |
| 149 | return v |
| 150 | case int: |
| 151 | return strconv.FormatInt(int64(v), 10) |
| 152 | case int8: |
| 153 | return strconv.FormatInt(int64(v), 10) |
| 154 | case int16: |
| 155 | return strconv.FormatInt(int64(v), 10) |
| 156 | case int32: |
| 157 | return strconv.FormatInt(int64(v), 10) |
| 158 | case int64: |
| 159 | return strconv.FormatInt(v, 10) |
| 160 | case uint: |
| 161 | return strconv.FormatUint(uint64(v), 10) |
| 162 | case uint8: |
| 163 | return strconv.FormatUint(uint64(v), 10) |
| 164 | case uint16: |
| 165 | return strconv.FormatUint(uint64(v), 10) |
| 166 | case uint32: |
| 167 | return strconv.FormatUint(uint64(v), 10) |
| 168 | case uint64: |
| 169 | return strconv.FormatUint(v, 10) |
| 170 | } |
| 171 | return "" |
| 172 | } |
| 173 | |
| 174 | const nestedRelationSplit = "__" |
| 175 |
no outgoing calls