Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/opalmer/check-go-version
Checks to see if you are running the latest version of Go.
https://github.com/opalmer/check-go-version
ci continuous-integration devops go-ci golang
Last synced: about 1 month ago
JSON representation
Checks to see if you are running the latest version of Go.
- Host: GitHub
- URL: https://github.com/opalmer/check-go-version
- Owner: opalmer
- License: mit
- Created: 2018-01-20T17:00:18.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-28T20:16:31.000Z (almost 7 years ago)
- Last Synced: 2024-10-12T21:21:14.620Z (2 months ago)
- Topics: ci, continuous-integration, devops, go-ci, golang
- Language: Go
- Size: 17 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# About
[![Build Status](https://travis-ci.org/opalmer/check-go-version.svg?branch=master)](https://travis-ci.org/opalmer/check-go-version)
[![codecov](https://codecov.io/gh/opalmer/check-go-version/branch/master/graph/badge.svg)](https://codecov.io/gh/opalmer/check-go-version)
[![Go Report Card](https://goreportcard.com/badge/github.com/opalmer/check-go-version)](https://goreportcard.com/report/github.com/opalmer/check-go-version)
[![GoDoc](https://godoc.org/github.com/opalmer/check-go-version?status.svg)](https://godoc.org/github.com/opalmer/check-go-version)This project is intended to process information about release versions of
Go from the following API:https://storage.googleapis.com/golang/
In general it's best to build and run the latest official release of Go as
it may contain security fixes. The intent of this project is two parts:* Provide an easy API for accessing releases.
* Wrap these APIs in a binary that can be used as part of a build process.## Usage
### Command Line
```
$ go get github.com/opalmer/check-go-version
$ check-go-version
latest: Version{Name: go1.9.3.linux-amd64, Version: 1.9.3, Platform: linux, Architecture: amd64}
running: Version{Name: go1.9.3.linux-amd64, Version: 1.9.3, Platform: linux, Architecture: amd64}
```### API
This package contains a self-contained API to retrieve information about
Golang versions. For more information, see godoc:https://godoc.org/github.com/opalmer/check-go-version/api
### Caching
Note, this project provides a local cache of the response retrieved from
the bucket that's updated if the last query was > 30 minutes go. This can
behavior can be changed however by modifying one of the `BucketCache*`
variables in the api package.