Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/rwxrob/get
- Owner: rwxrob
- License: apache-2.0
- Created: 2023-08-08T06:51:44.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-18T10:16:25.000Z (about 1 year ago)
- Last Synced: 2024-10-11T01:45:41.495Z (27 days ago)
- Topics: golang, persistence, strings, urls, utility
- Language: Go
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```