Menu

Bonus: /total Returns the Goose Function, /health Stays 200
📰

Bonus: /total Returns the Goose Function, /health Stays 200

DEV Community: docker·flisk·about 4 hours ago
#wPNE6uOa
#devtodocker#devto#dev#include#goose
Reading 0:00
15s threshold

Part 5 of Goose, then any language on Flisk. Part 4 already proved the container. This part uses the function from part 2 on a second path. Flisk's command does not change. docs/byo.md still only requires PORT , 0.0.0.0 , and HTTP 200 on /health .

0*0 + 1*1 + 2*2 + 3*3 + 4*4 is 30. That number should come from total , not from a literal in C.

Host check, before Docker

Keep shop.goose from part 3 and run it on the host. It exits. The server file must not.

goose shop.goose

Enter fullscreen mode

Exit fullscreen mode

You want the array [0, 1, 4, 9, 16] and the sum 30 . If that is wrong, fix the function here. Do not debug it through Traefik.

server.goose

serve now takes the sum.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.