Documentation
¶
Index ¶
- Constants
- Variables
- func Cat(path string, w io.Writer, options ...opts.PrintOp) (int, error)
- func Clean(version string) string
- func Fprint(w io.Writer, version string, options ...opts.PrintOp) (int, error)
- func Fprintln(w io.Writer, version string, options ...opts.PrintOp) (int, error)
- func Init(ctx context.Context, name string, src Source, options ...opts.InitOp) (err error)
- func IsPath(name string) bool
- func MakefileVar(name string) string
- func Prefixed(name string) string
- func Print(version string, options ...opts.PrintOp) (int, error)
- func PrintIfPath(path string) (int, error)
- func Println(version string, options ...opts.PrintOp) (int, error)
- func Read(name string, options ...opts.ReadOp) (string, error)
- func ReadFile(path string, options ...opts.ReadOp) (string, error)
- func RelPath(name string) string
- func WriteMakefile(name string, options ...opts.WriteOp) error
- type GitHub
- type Source
- type String
Constants ¶
View Source
const DirName = ".versions"
Variables ¶
View Source
var Regex = regexp.MustCompile(`v?\d+\.\d+\.\d+`)
Functions ¶
func MakefileVar ¶ added in v0.1.2
func PrintIfPath ¶ added in v0.1.2
Types ¶
Click to show internal directories.
Click to hide internal directories.