bls-go-example

command module
v0.0.0-...-1d7860f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

README

bls-go-example

This is a simple demo program that uses the bls-go library to query BLS.gov for labor statistics.

Requirements

  • Go
  • BLS.gov API key (not strictly required, but highly recommended; you can request one here)

Note: without an API key, the request won't return the annual average, calculations, or catalog data, and you're subject to stricter daily query limits.

Installation

git clone https://github.com/clpo13/bls-go-example.git
cd bls-go-example
go install

Usage

Usage of bls-go-example:
  -start year
        first year to get data for (required)
  -end year
        last year to get data for (required)
  -series string
        series to get data for (required)
  -key string
        API key to use
  -avg
        request annual average of monthly values
  -calc
        request data calculations
  -cat
        request series catalog data

The program will query the BLS.gov API and print out the catalog data of the given series (if requested) and the first period of data, along with calculations, if the -calc flag was used.

Contributing

Issues and pull requests are always welcome. Please file any bug reports using the GitHub issues page.

License

This program is available under the terms of the Apache 2.0 license, the text of which can be found in LICENSE or at https://www.apache.org/licenses/LICENSE-2.0.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL