app

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Overview

Package app implements the core logic of the goversion tool.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App

type App struct {
	GoBin, SDK fsx.FS
	Output     io.Writer
	RunCmd     func(ctx context.Context, name string, args ...string) error
	RunCmdOut  func(ctx context.Context, name string, args ...string) (string, error)
	Requester  interface {
		Do(*http.Request) (*http.Response, error)
	}
}

func (*App) List

func (a *App) List(ctx context.Context, printAll bool, printOnly string) error

func (*App) Remove

func (a *App) Remove(ctx context.Context, version string) error

func (*App) Use

func (a *App) Use(ctx context.Context, version string) error

Jump to

Keyboard shortcuts

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