data

package
v0.0.0-...-acaaffd Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogoData = []byte{} /* 9437 elements not displayed */
View Source
var Path = "./.w2socks.json"

Functions

func Check

func Check(filename string)

func DeleteConfig

func DeleteConfig(con Config) error

存储配置文件

func InsertConfig

func InsertConfig(con Config) error

存储配置文件

func Logo() fyne.Resource

func PathExists

func PathExists(path string) (bool, error)

判断文件夹是否存在

func Read

func Read(filename string, v interface{}) error

func UpdateConfig

func UpdateConfig(con Config, index int) error

存储配置文件

func Write

func Write(filename string, v interface{}) error

Types

type Config

type Config struct {
	Name string `json:"name"`
	core.W2Config
}

func GetConfig

func GetConfig() []*Config

Jump to

Keyboard shortcuts

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