sub2sing-box/pkg/parser/parsers_map.go

16 lines
389 B
Go
Raw Normal View History

2024-03-11 23:39:58 +08:00
package parser
import (
"sub2sing-box/internal/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,
}