Skip to content
A Go wrapper for the Australian Business Register
Go Groovy
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
abra-lib
cmd
.gitignore
.travis.yml
CHANGELOG.md
LICENCE
README.md
abra.png
go.mod
go.sum
main.go

README.md

Abra

Build Status FOSSA Status GoDoc Status Maintainability Test Coverage

A Go wrapper for the Australian Business Register

Australian Business Register Applicance

Usage

  1. Register for a GUID
  2. Set the ABR_GUID environment variable to the GUID issued to you.

Search

Search by the name fields of the ABN entries.

abra search -s "Bob's Country Bunker" --GUID 123-456-789

Find by ABN

When you have an ABN you can get further information. For example:

abra find-abn -s 33102417032 --GUID 123-456-789

Find by ACN

abra find-acn -s 102417032 --GUID 123-456-789

Options

Output Types

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

Custom Text Output Template

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

Testing

  1. Run:
    go test ./abra
    

Documenation

License

FOSSA Status

You can’t perform that action at this time.