Back to godoc.org
v2ray.com/core / common / platform

package platform

v4.19.1+incompatible
Latest Go to latest
Published: Jun 3, 2019 | License: MIT | Module: v2ray.com/core

Index

func ExpandEnv

func ExpandEnv(s string) string

func GetAssetLocation

func GetAssetLocation(file string) string

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

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
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier