util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PKG_SEARCH_URL = "https://pkg.go.dev/search?m=package&%s"
)

Variables

This section is empty.

Functions

func GetPkgUrl

func GetPkgUrl(value string) string

func ParseGoMod

func ParseGoMod() ([]string, error)

func RunGoGet

func RunGoGet(pkg string) error

RunGoGet is the same as RunGoInstall but it uses 'go get' instead of 'go install'.

func Search(term string) []string

Search searches and parses the results from pkg.go.dev and returns the first 25 results.

Types

type Package

type Package struct {
	Path    string `json:"Path"`
	Version string `json:"Version"`
	Dir     string `json:"Dir"`
}

func GetDependencyList

func GetDependencyList() ([]Package, error)

Jump to

Keyboard shortcuts

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