Code Monkey home page Code Monkey logo

snago's Introduction

snago - grab a package for a release of Go; list Go releases

What is it?

Use this tool to list current Go releases, old Go releases, and to download and unpack the archive for a particular OS and architecture.

Quick Usage

# List all recent stable releases
snago 

# List all releases ever
snago -all

# Show the raw JSON
snago -raw

# Show the raw JSON for all releases ever
snago -all -raw

# Download version 1.12.1 (for the default OS and arch - linux/amd64)
snago 1.12.1

# Download version 1.12.1 for Darwin on amd64
snago 1.12.1 darwin/amd64

# Download version 1.12.1 (default os and arch) and unpack in ~/.my_go
snago -dir ~/.my_go 1.12.1 

Build and Install

Assuming you have 'go' already installed you can

make

and this should build snago.

To install simply copy 'snago' somewhere in your $PATH.

History

This is the first thing I ever wrote in Go. I wrote it back in 2016 or so. I don't even think the download URL I use now existed then. Once I discovered that it existed I added the listing feature. All this work was performed on my old GitLab account. When I decided to move everything over to Github (October 2020) I simply copied it all over, created new repos, and committed. This had the exciting property of losing all history. I was okay with this, some may not be.

Future

I may someday make this utility more user friendly. Right now the errors are pretty raw, some of the functionality may not be quite as expected. It's a pretty simple tool though. I use it often. I use it to find new releases and to download them, which is its entire purpose.

snago's People

Contributors

whoissethdaniel avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.