env

package
v0.0.0-...-8e5170d Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderTemplate

func RenderTemplate(tmpl *template.Template, targetPath string, params *TemplateParams) error

Types

type Env

type Env struct {
	Path string
}

func (*Env) GetGopath

func (env *Env) GetGopath() (string, error)

func (*Env) GetGoroot

func (env *Env) GetGoroot() (string, error)

func (*Env) Init

func (env *Env) Init() error

func (*Env) SetGoroot

func (env *Env) SetGoroot(target string) error

type ShellString

type ShellString string

TODO: make private if possible

func (ShellString) Escape

func (str ShellString) Escape() ShellString

type TemplateParams

type TemplateParams struct {
	Dir    ShellString
	GoRoot ShellString
	GoPath ShellString
}

TODO: make private if possible

Jump to

Keyboard shortcuts

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