Browse Source

register protobuf config loader

Darien Raymond 9 năm trước cách đây
mục cha
commit
348893a02a
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  1. 4 0
      config_loader.go

+ 4 - 0
config_loader.go

@@ -34,3 +34,7 @@ func LoadProtobufConfig(input io.Reader) (*Config, error) {
 	}
 	return config, nil
 }
+
+func init() {
+	RegisterConfigLoader(ConfigFormat_Protobuf, LoadProtobufConfig)
+}