mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-02 07:26:24 -05:00
move json config into a separate package
This commit is contained in:
parent
5bd3cee371
commit
ab9ca3b842
@ -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
|
||||
|
||||
package main
|
||||
package json
|
||||
|
||||
import "syscall"
|
||||
|
@ -1,6 +1,6 @@
|
||||
// +build windows
|
||||
|
||||
package main
|
||||
package json
|
||||
|
||||
import "syscall"
|
||||
|
5
main/json/errors.generated.go
Normal file
5
main/json/errors.generated.go
Normal 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") }
|
Loading…
Reference in New Issue
Block a user