A Golang gitignore.io fetching library using fasthttp ๐
package main
import "github.com/gofunky/fastgogi"
import "fmt"
func main() {
myGogi := fastgogi.NewClient()
// Get the list of available types.
availableTypes, err := myGogi.List()
if err != nil {
panic(err)
}
fmt.Printf("Available Types:\n%s", availableTypes)
// Get the gitignore template for Go and IntelliJ.
gitignoreContent, err := myGogi.Get("go", "IntelliJ")
if err != nil {
panic(err)
}
fmt.Printf("Available Types:\n%s", gitignoreContent)
}
Check out this generator: gogigen