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: 3 months 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 (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-18T10:16:25.000Z (almost 2 years ago)
- Last Synced: 2024-10-26T00:06:30.482Z (9 months 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
[](https://godoc.org/github.com/rwxrob/get)
[](LICENSE)
[](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
```