(a, b map[string]any)
| 1013 | case int64: |
| 1014 | return float64(v) |
| 1015 | default: |
| 1016 | return 0 |
| 1017 | } |
| 1018 | } |
| 1019 | |
| 1020 | func truthy(value any) bool { |
| 1021 | b, _ := value.(bool) |
| 1022 | return b |
| 1023 | } |
| 1024 | |
| 1025 | func truncateString(value string, limit int) string { |
| 1026 | runes := []rune(value) |
| 1027 | if limit <= 0 || len(runes) <= limit { |
| 1028 | return value |
no outgoing calls
no test coverage detected