This commit is contained in:
2024-08-11 22:16:42 +02:00
parent 178cde141e
commit 3aeb65cd30

26
main.go
View File

@@ -35,25 +35,35 @@ const (
cabbage = 25 cabbage = 25
sugar = 387 sugar = 387
sunflowerOil = 828 sunflowerOil = 828
tomatoPassata = 31 tomatoPassata = 25
tomatoPaste = 82 tomatoPaste = 82
hardCheese = 330
porkLean = 143 porkLean = 143
rice = 130 rice = 130
water = 0 water = 0
skyr = 62 skyr = 62
vegetableMix = 50 vegetableMix = 50
mustard = 30 mustard = 30
beetroot = 43
ketchup = 92
sausage = 300
mexicomix = 59
milk = 64
yeast = 185
tofu = 76
sourcream = 70
cherry = 63
lentil = 116
cream = 232
) )
func main() { func main() {
var ingredients = []ingredient{ var ingredients = []ingredient{
{weight: 1200, caloriesPer100: water}, {500, potato},
{weight: 20, caloriesPer100: butter}, {150, lentil},
{weight: 20, caloriesPer100: flour}, {125, cream},
{weight: 20, caloriesPer100: tomatoPaste}, {30, flour},
{weight: 700, caloriesPer100: potato}, {1500, water},
{weight: 231, caloriesPer100: carrot},
{weight: 500, caloriesPer100: beans},
} }
var totalWeight int64 var totalWeight int64