1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-06-09 09:20:45 +00:00

move json config into a separate package

This commit is contained in:
Darien Raymond 2018-02-17 21:22:51 +01:00
parent 5bd3cee371
commit ab9ca3b842
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
5 changed files with 13 additions and 3 deletions

View File

@ -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"
)

View File

@ -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"

View File

@ -1,6 +1,6 @@
// +build !windows
package main
package json
import "syscall"

View File

@ -1,6 +1,6 @@
// +build windows
package main
package json
import "syscall"

View File

@ -0,0 +1,5 @@
package json
import "v2ray.com/core/common/errors"
func newError(values ...interface{}) *errors.Error { return errors.New(values...).Path("Main", "Json") }