Skip to content
Go Wrapper for Open Food Facts
Go
Branch: master
Clone or download
Latest commit 0dd7812 Feb 13, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples/simple-get-product
.travis.yml
LICENSE.txt
README.md
data_operator.go
epoch_time.go
example_test.go
http_api.go
ingredient.go
nutrient_level.go
nutriment.go
product.go
product_result.go
product_test.go
url_string.go

README.md

openfoodfacts-go

Build Status

About

This library is for accessing OpenFoodFacts data for food product, ingredients and nutritional data from within your go application.

Use of the OpenFoodFacts database is subject to the OpenFoodFacts Terms of Use, please read them before using this library in your application.

This library is copyright © 2016 OpenFoodFacts. All rights reserved. Use of this library is governed by the MIT license which can be found in the LICENSE.txt file.

Documentation

Package documentation

OpenFoodFacts API details

Go API wiki page

Usage details

This is a very simple example how to use the library in you go program.

package main

import (
	"github.com/openfoodfacts/openfoodfacts-go"
)

func main() {
	api := openfoodfacts.NewHttpApiOperator("world", "", "")
	product, err := api.GetProduct("0737628064502")
}

There are runnable examples in the examples subdirectory.

Authors

Ken Allan

You can’t perform that action at this time.