Selaa lähdekoodia

register protobuf config loader

Darien Raymond 9 vuotta sitten
vanhempi
commit
348893a02a
1 muutettua tiedostoa jossa 4 lisäystä ja 0 poistoa
  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)
+}