func init() { if err := lion.RegisterEncoderDecoder(Encoding, newEncoderDecoder()); err != nil { panic(err.Error()) } lion.SetJSONMarshalFunc(DefaultJSONMarshalFunc) lion.AddGlobalHook(setGlobalLogger) }
func init() { if err := lion.RegisterEncoderDecoder( Encoding, newEncoderDecoder( Encoding, thrift.NewTBinaryProtocolFactory( true, true, ), ), ); err != nil { panic(err.Error()) } lion.AddGlobalHook(setGlobalLogger) }