Skip to content

A Go (Golang) library for retrieving package versions from the Chocolatey API.

License

Notifications You must be signed in to change notification settings

gopherlibs/winpkg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A Go (Golang) library for retrieving package versions from the Chocolatey API.

Resources

License

Stars

Watchers

Forks

Languages