platform

package
v4.42.1 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 6 Imported by: 18

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandEnv

func ExpandEnv(s string) string

func GetAssetLocation

func GetAssetLocation(file string) string

GetAssetLocation search for `file` in certain locations

func GetConfDirPath

func GetConfDirPath() string

GetConfDirPath reads "v2ray.location.confdir"

func GetConfigurationPath

func GetConfigurationPath() string

func GetPluginDirectory

func GetPluginDirectory() string

func GetToolLocation

func GetToolLocation(file string) string

func LineSeparator

func LineSeparator() string

func NormalizeEnvName

func NormalizeEnvName(name string) string

Types

type EnvFlag

type EnvFlag struct {
	Name    string
	AltName string
}

func NewEnvFlag

func NewEnvFlag(name string) EnvFlag

func (EnvFlag) GetValue

func (f EnvFlag) GetValue(defaultValue func() string) string

func (EnvFlag) GetValueAsInt

func (f EnvFlag) GetValueAsInt(defaultValue int) int

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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