src

package
v0.0.0-...-fc2119f Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IGVM

type IGVM interface {
	SDK() ISDK
	ShowConfig()
	Initialize(cmd *cobra.Command) error
}

IGVM is interface of GVM function

func GVM

func GVM() IGVM

GVM is functionality library

type ISDK

type ISDK interface {
	HasValidVersion(version string) bool
	Install(version string) error
	Switch(version string) error
	Show(version string)
	ShowList() error
	Uninstall(version string, purge bool) error
	Info() error
}

ISDK is interface of SDK function

type SDK

type SDK struct {
	Name           string
	Downloaded     bool
	Installed      bool
	Used           bool
	DownloadedPath string
	InstalledPath  string
}

SDK is information of Golang SDK

Jump to

Keyboard shortcuts

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