env

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: May 8, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CacheDir

func CacheDir() string

func EnsureDirectory

func EnsureDirectory(path string) error

func GetLibraries

func GetLibraries() (map[string][]string, error)

func GetLibrary

func GetLibrary(name, version string) (*crystal.Type, error)

func GetLibraryVersions

func GetLibraryVersions(name string) ([]string, error)

func ImportCrystalVersion

func ImportCrystalVersion(s string) error

func ImportCrystalVersions

func ImportCrystalVersions() error

func LibraryDir

func LibraryDir() string

func RemoveLibrary

func RemoveLibrary(name string) error

func RemoveLibraryVersion

func RemoveLibraryVersion(name, version string) error

Types

type Version

type Version struct {
	Name string `json:"name"`
	URL  string `json:"url"`
}

func GetCrystalVersions

func GetCrystalVersions() ([]*Version, error)

Jump to

Keyboard shortcuts

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