platform

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	XUDPBaseKey = "xray.xudp.basekey"
)

Functions

func GetAssetLocation

func GetAssetLocation(filename string) string

func GetConfigurationPath

func GetConfigurationPath() string

GetConfigurationPath reads "x.location.config" environment variable, and returns the path to the configuration file. if not set, it returns the default configuration path, which is the same directory as the executable.

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