Пример #1
0
func codec() *mux.Multicodec {
	m := mux.StandardMux()
	m.Wrap = Flags.MCWrap
	return m
}
Пример #2
0
func codecWithPath(path string) mc.Multicodec {
	hdr := mc.Header([]byte(path))
	codec := mux.CodecWithHeader(hdr, mux.StandardMux().Codecs)
	return codec
}