mirror of
https://github.com/bestnite/sub2sing-box.git
synced 2025-10-26 09:11:01 +00:00
更改项目结构
This commit is contained in:
15
parser/parsers_map.go
Normal file
15
parser/parsers_map.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package parser
|
||||
|
||||
import (
|
||||
"sub2sing-box/model"
|
||||
)
|
||||
|
||||
var ParserMap map[string]func(string) (model.Proxy, error) = map[string]func(string) (model.Proxy, error){
|
||||
"ss://": ParseShadowsocks,
|
||||
"vmess://": ParseVmess,
|
||||
"trojan://": ParseTrojan,
|
||||
"vless://": ParseVless,
|
||||
"hysteria://": ParseHysteria,
|
||||
"hy2://": ParseHysteria2,
|
||||
"hysteria2://": ParseHysteria2,
|
||||
}
|
||||
Reference in New Issue
Block a user