Initial commit
This commit is contained in:
12
Sources/exe/main.swift
Normal file
12
Sources/exe/main.swift
Normal file
@@ -0,0 +1,12 @@
|
||||
import Foundation
|
||||
import swift_openfoodfacts_sdk
|
||||
|
||||
let off = OpenFoodFactsClient()
|
||||
print("Hello world")
|
||||
|
||||
do {
|
||||
let res = try await off.getProductByBarcode("3017620422003")
|
||||
print(res)
|
||||
} catch {
|
||||
print("\(error)")
|
||||
}
|
||||
Reference in New Issue
Block a user