Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rwxrob/get

Go utility package for fetching string data from common sources
https://github.com/rwxrob/get

golang persistence strings urls utility

Last synced: 14 days ago
JSON representation

Go utility package for fetching string data from common sources

Awesome Lists containing this project

README

        

# Simple Go package for fetching string data from common sources

[![GoDoc](https://godoc.org/github.com/rwxrob/get?status.svg)](https://godoc.org/github.com/rwxrob/get)
[![License](https://img.shields.io/badge/license-Apache2-brightgreen.svg)](LICENSE)
[![Go Report Card](https://goreportcard.com/badge/github.com/rwxrob/get)](https://goreportcard.com/report/github.com/rwxrob/get)

Get data from any common place a person might keep it based on the user's preference.

```go
get.String(target string) (string, error)
```

The `target` is in the form of a URL but includes additional schemas to those expected. See Go documentation for more.

## Installation

Most will likely want to cut and paste from this package and "vendor" the code into your own (which is encouraged to keep dependencies down where possible). Please consider mentioning where you got that code or keeping the heading of these files with the original copyright.

Otherwise, you can just import like anything else:

```sh
go get -u github.com/rwxrob/get
```