convert

package
v0.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 12 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotSupportPlugin = errors.New("不支持的插件")
View Source
var ErrNotSupportType = errors.New("不支持的类型")

Functions

func Clash2sing

func Clash2sing(c clash.Clash) ([]singbox.SingBoxOut, error)

func Patch

func Patch(b []byte, s []singbox.SingBoxOut, include, exclude string, extOut []interface{}, extags ...string) ([]byte, error)

func PatchMap added in v0.1.0

func PatchMap(
	tpl []byte,
	s []singbox.SingBoxOut,
	include, exclude string,
	extOut []interface{},
	extags []string,
	urltestOut bool,
) (map[string]any, error)

func ToInsecure

func ToInsecure(c *clash.Clash)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL