@@ -42,4 +42,7 @@ import (
_ "v2ray.com/core/transport/internet/headers/srtp"
_ "v2ray.com/core/transport/internet/headers/utp"
_ "v2ray.com/core/transport/internet/headers/wechat"
+
+ // JSON config format
+ _ "v2ray.com/core/main/json"
)
@@ -1,4 +1,6 @@
-package main
+package json
+//go:generate go run $GOPATH/src/v2ray.com/core/common/errors/errorgen/main.go -pkg json -path Main,Json
import (
"context"
@@ -1,6 +1,6 @@
// +build !windows
import "syscall"
// +build windows
@@ -0,0 +1,5 @@
+import "v2ray.com/core/common/errors"
+func newError(values ...interface{}) *errors.Error { return errors.New(values...).Path("Main", "Json") }