go-getter-fdc

command module
v0.0.0-...-3cea56f Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

go-getter-fdc

Simple CLI tool that retrieves food data from USDA's FoodData Central API

https://fdc.nal.usda.gov/api-guide.html

You will need an API key from FDC to use this app: https://fdc.nal.usda.gov/api-key-signup.html

Building

go build

Testing

go test -v

Usage

Run ./go-getter-fdc search --help for example usage and valid flags. Your FDC API key must either be exported or passed into the command line as an API_KEY environment variable.

Example command to search for food by keywords: API_KEY=yourKey ./go-getter-fdc search cheddar cheese

Documentation

Overview

Copyright © 2020 Greg Whorley <greg@whorley.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

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