This commit is contained in:
2024-07-20 18:39:16 +02:00
parent 1ccaeae174
commit 178cde141e

19
main.go
View File

@@ -16,9 +16,9 @@ type ingredient struct {
const (
bakingPowder = 92
beans = 100
butter = 717
butter = 774
butter2 = 630 // Cake butter thing that's not real butter
carrots = 35
carrot = 35
chickenBreast = 98
cocoa = 363
egg = 150
@@ -37,16 +37,23 @@ const (
sunflowerOil = 828
tomatoPassata = 31
tomatoPaste = 82
porkLean = 143
rice = 130
water = 0
skyr = 62
vegetableMix = 50
mustard = 30
)
func main() {
var ingredients = []ingredient{
{weight: 25, caloriesPer100: sunflowerOil},
{weight: 100, caloriesPer100: onion},
{weight: 16, caloriesPer100: sugar},
{weight: 800, caloriesPer100: cabbage},
{weight: 1200, caloriesPer100: water},
{weight: 20, caloriesPer100: butter},
{weight: 20, caloriesPer100: flour},
{weight: 20, caloriesPer100: tomatoPaste},
{weight: 700, caloriesPer100: potato},
{weight: 231, caloriesPer100: carrot},
{weight: 500, caloriesPer100: beans},
}
var totalWeight int64