use .env. need to go get.
$ go get github.com/joho/godotenv
$ cp env-example .env
https://{team-domain}.docbase.io/settings
# Please get access token from your team's settings.
ACCESS_TOKEN=
# Example https://{TEAM_DOMAIN}.docbase.io/
TEAM_DOMAIN=
# Your AUTHOR ID.
AUTHOR_ID=
# Save location.
SAVE_DIR=
# docbase api get limit 20 items. 1hour limit 30 items.
# [pages = 1] -> 1~19 items. [pages = 2] -> 20~39 items.
# [pages = 0] All Articles
# get for descending order.
PAGES=
$ go run docbase.go struct.go
or
$ go build docbase.go struct.go
$ go run docbase