Name returns the name of the Codec implementation. The returned string will be used as part of content type in transmission. The result must be static; the result cannot change between calls.
()
| 25 | // will be used as part of content type in transmission. The result must be |
| 26 | // static; the result cannot change between calls. |
| 27 | Name() string |
| 28 | } |
| 29 | |
| 30 | var registeredCodecs = make(map[string]Codec) |
no outgoing calls