gowrap

module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2020 License: Apache-2.0

README

gowrap

gowrap is a Go version management tool written in Go.

gowrap tool consist of the following commands:

  • gowrap: the command to manage installed versions
  • go: a wrapper for the Go's go command
  • gofmt: a wrapper for the Go's gofmt command

gowrap command

This is the main Go version management command. It will allow you installing, uninstalling and configuring some preferences (such as setting up a default Go version). For more help, run gowrap help.

Wrapper commands

As a user of gowrap tool, you should use wrapper commands (go and gofmt) provided by this tool instead of directly executing specific versions of Go's commands.

Wrapper commands will detect the most suitable Go version to use and they will call the desired specific version of the executed command.

In order to decide which version to use, wrapper commands will follow these rules:

  1. If current directory is a Go module project:
    1. If no compatible version installed, it will suggest the user to install latest compatible version and use it
    2. If compatible versions are installed, it will use latest compatible version
  2. If not in go modules project:
    1. If default version configured, it will use that version
    2. If no versions installed, it will suggest to install latest Go version and it will use it
    3. Otherwise, it will use latest installed Go version

Directories

Path Synopsis
cmd
gowrap command
pkg

Jump to

Keyboard shortcuts

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