download

package
v0.0.0-...-405f1f6 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean(path string) (string, error)

Clean trims any URL parts, like the scheme or username, that might be present in a user-submitted URL

func Download

func Download(path, dest string) (root *vcs.RepoRoot, err error)

Download takes a user-provided string that represents a remote Go repository, and attempts to download it in a way similar to go get. It is forgiving in terms of the exact path given: the path may have a scheme or username, which will be trimmed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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