A Go wrapper for the Australian Business Register
- Register for a GUID
- Set the
ABR_GUID
environment variable to the GUID issued to you.
Search by the name fields of the ABN entries.
abra search -s "Bob's Country Bunker" --GUID 123-456-789
When you have an ABN you can get further information. For example:
abra find-abn -s 33102417032 --GUID 123-456-789
abra find-acn -s 102417032 --GUID 123-456-789
There are three output types available:
- text
- json
- xml
Set via the -f
or --output-format
flag. Example:
abra search -s "Bob's Country Bunker" -f json --GUID 123-456-789
Use go's text/template formatted template to customise the output as required.
Set via the -t
or --text-output-template
flag. Example:
abra search -s "Bob's Country Bunker" -f "text" \
-t "./tmp/my-custom-template.gtpl" --GUID 123-456-789
With sample template:
Name: {{.Name}}
Link: https://abr.business.gov.au/ABN/View?abn={{.ABN.IdentifierValue}}
- Run:
go test ./...