Client package that facilitates access to domestic labor data and statistics via the US Bureau of Labor Statistics (BLS). For better access, be sure to obtain a free registration key.
package main
import (
labor "github.com/openwonk/bls-api"
"fmt"
)
func main() {
s := labor.Series{
"abcd1235e6789f0a987654bc3d21e0f1", // RegistrationKey
"2010", // StartYear
"2012", // EndYear
false, // Catalog
true, // Calculations
true, // AnnualAverage
[]string{"LAUCN040010000000007", "LAUCN040010000000004"}, // Series
}
fmt.Println(s.Request())
}
OpenWonk © 2015 MIT License