diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-15 16:27:56 +0100 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-03-15 16:27:56 +0100 |
| commit | d9b66eb7a9a9135462e490e46244dcd1b71c7293 (patch) | |
| tree | a237163516aac435d7dbb8c0c1cf5a5b639c698f | |
| parent | 0fe92fb4b9344e76111e88b2c95cb8e7c5cc3f85 (diff) | |
docs(info): usage in readme
| -rw-r--r-- | README.md | 13 | ||||
| -rw-r--r-- | human.go | 1 |
2 files changed, 14 insertions, 0 deletions
@@ -1 +1,14 @@ # go-human.json + +Simple implementation of [`human.json`](https://codeberg.org/robida/human.json) in Go. + +## Usage + +Install with: +```bash +go get -u git.anhgelus.world/anhgelus/go-human.json +``` + +Type `Human` represents the JSON file. + +You can get the URL of the `human.json` referenced by a link tag with `GetURLFromHTML`. @@ -23,6 +23,7 @@ var ( // URL represents a standard [url.URL] following normalization rules of human.json. type URL url.URL +// NewURL creates a new [URL]. func NewURL(s string) (*URL, error) { raw, err := url.Parse(s) if err != nil { |
