mirror of
https://github.com/v2ray/v2ray-core.git
synced 2026-11-29 23:34:44 +00:00
json config parser
This commit is contained in:
85 files changed
+9357
-9052
No files matched your search
+1
-1
@@ -11,7 +11,7 @@ import (
|
||||
|
||||
type ConfigLoader func(input io.Reader) (*Config, error)
|
||||
|
||||
var configLoaderCache map[ConfigFormat]ConfigLoader
|
||||
var configLoaderCache = make(map[ConfigFormat]ConfigLoader)
|
||||
|
||||
func RegisterConfigLoader(format ConfigFormat, loader ConfigLoader) error {
|
||||
configLoaderCache[format] = loader
|
||||
|
||||
Reference in new issue
Block a user