Skip to content

Latest commit

 

History

History
61 lines (39 loc) · 1.82 KB

README.md

File metadata and controls

61 lines (39 loc) · 1.82 KB

winpkg CI Status Go Report Card GoDoc Software License

winpkg is a Go (Golang) module to pull the latest version of a Chocolatey package. Chocolatey here is a Windows package manager.

Requirements

This Go module is intended to support the two most recent minor releases release of Go. Currently this is Go v1.18.x and v1.19.x.

Installation

winpkg is a Go module intended to be used as a library. So the best way to "install" it is to import into your own code and then run go mod tidy to get the source code downloaded.

import(
	"github.com/gopherlibs/winpkg/winpkg"
)

Usage

package main

import (
	"fmt"

	"github.com/gopherlibs/winpkg/winpkg"
)

func main() {

	// Let's get the latest version of the 'git' package
	if ver, err := winpkg.GetVersion( "git" ); err != nil {
		fmt.Println(err)
	} else {
		fmt.Println(ver)
	}
}

Development

This module is written and tested with Go v1.18+ in mind. go fmt is your friend. Please feel free to open Issues and PRs are you see fit. Any PR that requires a good amount of work or is a significant change, it would be best to open an Issue to discuss the change first.

License & Credits

This module was written by Ricardo N Feliciano (FelicianoTech). This repository is licensed under the MIT license. This repo's license can be found here.