config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GO   = "go"
	JAVA = "java"
	NODE = "node"
)

Variables

This section is empty.

Functions

func VerifyEnv

func VerifyEnv() error

func VerifyEnvGo

func VerifyEnvGo() error

func VerifyEnvJava

func VerifyEnvJava() error

func VerifyEnvNode

func VerifyEnvNode() error

Types

type EnvmConfig

type EnvmConfig struct {
	Root        string `json:"root"`      // root 目录
	Arch        string `json:"arch"`      // 系统arch
	Downloads   string `json:"downloads"` // 下载目录
	LinkSetting map[string]SubConfig
	Settings    Settings `json:"settings"`
}

func Default

func Default() EnvmConfig

type Settings

type Settings struct {
}

type SubConfig

type SubConfig struct {
	Symlink   string `json:"symlink"`   // 链接位置
	Downloads string `json:"downloads"` // 相对位置
}

Jump to

Keyboard shortcuts

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