mirror of
https://github.com/nitezs/sub2sing-box.git
synced 2024-12-24 11:24:41 -05:00
17 lines
454 B
Go
17 lines
454 B
Go
package constant
|
|
|
|
import (
|
|
"sub2sing-box/model"
|
|
"sub2sing-box/parser"
|
|
)
|
|
|
|
var ParserMap map[string]func(string) (model.Proxy, error) = map[string]func(string) (model.Proxy, error){
|
|
"ss://": parser.ParseShadowsocks,
|
|
"vmess://": parser.ParseVmess,
|
|
"trojan://": parser.ParseTrojan,
|
|
"vless://": parser.ParseVless,
|
|
"hysteria://": parser.ParseHysteria,
|
|
"hy2://": parser.ParseHysteria2,
|
|
"hysteria2://": parser.ParseHysteria2,
|
|
}
|