name returns the configured name, or fails with ErrNameNotSet.
()
| 88 | |
| 89 | // name returns the configured name, or fails with ErrNameNotSet. |
| 90 | func (e RuntimeEntry[T]) name() (string, error) { |
| 91 | if e.n == "" { |
| 92 | return "", ErrNameNotSet |
| 93 | } |
| 94 | |
| 95 | return e.n, nil |
| 96 | } |
| 97 | |
| 98 | func JSONString(v any) string { |
| 99 | s, err := json.Marshal(v) |
no outgoing calls
no test coverage detected