allString reports if the slice contains only strings.
(v []any)
| 710 | |
| 711 | // allString reports if the slice contains only strings. |
| 712 | func allString(v []any) bool { |
| 713 | for i := range v { |
| 714 | if _, ok := v[i].(string); !ok { |
| 715 | return false |
| 716 | } |
| 717 | } |
| 718 | return true |
| 719 | } |
| 720 | |
| 721 | // marshalArg stringifies the given argument to a valid JSON document. |
| 722 | func marshalArg(arg any) any { |
no outgoing calls
no test coverage detected
searching dependent graphs…