String returns the canonical string representation " : " with "*" wildcards.
()
| 32 | |
| 33 | // String returns the canonical string representation "<type>:<id>" with "*" wildcards. |
| 34 | func (t APIAllowListTarget) String() string { |
| 35 | return string(t.Type) + ":" + t.ID |
| 36 | } |
| 37 | |
| 38 | // MarshalJSON encodes as a JSON string: "<type>:<id>". |
| 39 | func (t APIAllowListTarget) MarshalJSON() ([]byte, error) { |
no outgoing calls
no test coverage detected