Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/matusstafura/ant
Go lib
https://github.com/matusstafura/ant
go golang helpers lib
Last synced: 1 day ago
JSON representation
Go lib
- Host: GitHub
- URL: https://github.com/matusstafura/ant
- Owner: matusstafura
- License: mit
- Created: 2022-10-16T15:35:25.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-11-20T16:19:54.000Z (about 2 years ago)
- Last Synced: 2024-06-21T10:37:45.765Z (7 months ago)
- Topics: go, golang, helpers, lib
- Language: Go
- Homepage:
- Size: 162 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Ant
Various Helpers in GoLang
```go
import (
"fmt"
"github.com/matusstafura/ant/extract"
)func main() {
sitemap := extract.UrlsFromFile("content/test/sitemap.xml")
fmt.Println(sitemap) // [http://www.example.com http://www.other.com]sitemap := extract.UrlsFromUrl("https://www.example.com")
fmt.Println(sitemap) // [http://www.example.com http://www.other.com]
}
``````shell
go run main.go -f=extract -input="path/to/inputfile" -output="dump.txt"
```## TESTING
run all tests
```shell
go test ./... -v
```coverage
```shell
./scripts.sh coverage
```