Skip to content

Commit

Permalink
++go generate runner, domain parser instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
bobesa committed Aug 4, 2017
1 parent b75b309 commit bb13940
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,17 @@ GOlang package for checking if url contains subdomain, what that subdomain is, w
go get github.com/bobesa/go-domain-util/domainutil
```

# Rebuild the TLD database from publicsuffix.org

```
# (Re)build Parser
go build -o $GOPATH/bin/domainparser github.com/bobesa/go-domain-util/cmd/domainparser
# Go to domainutil pkg & generate tlds
cd $GOPATH/github.com/bobesa/go-domain-util/domainutil
go generate
```

# Example code

```go
Expand Down
3 changes: 3 additions & 0 deletions domainutil/tlds_generator.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
package domainutil

//go:generate domainparser

0 comments on commit bb13940

Please sign in to comment.