Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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.