Socket
Socket
Sign inDemoInstall

github.com/earthchain/openfoodfacts-go

Package Overview
Dependencies
0
Alerts
File Explorer

Install Socket

Detect and block malicious and high-risk dependencies

Install

    github.com/earthchain/openfoodfacts-go

This is a go library used to access the OpenFoodFacts.org database for food product, ingredients and nutritional data from within your go application. The main method of using this library is to create a DataOperator and call methods on it. Create a Client to retrieve and modify database items. Client interacts with the official HTTP API from openfoodfacts.org.


Version published

Readme

Source

openfoodfacts-go

Build Status

About

This library is for accessing OpenFoodFacts data for food product, ingredients and nutritional data from within your go application. You can also get the Nutri-Score and the Eco-Score

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 © 2019-2021 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.NewClient("world", "", "")
	product, err := api.Product("0737628064502")
}

There are runnable examples in the examples subdirectory.

Authors

Ken Allan

Third party applications

If you use this SDK, feel free to open a PR to add your application in this list.

FAQs

Last updated on 06 Nov 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc