Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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

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
```