Moved http related functions to their own file; added 'sum.go' for a second endpoint.

This commit is contained in:
2025-07-15 12:41:07 +02:00
parent cce4d5db5c
commit 4b4f8ea20b
5 changed files with 88 additions and 59 deletions

View File

@@ -1,3 +1,7 @@
# Fibnacci
# Fibonacci
Just a little proof-of-concept setup to help teach myself Go, Containerisation, and CI/CD.
Just a little proof-of-concept setup to help teach myself Go, Containerisation, and CI/CD.
The Go code itself is basically a HTTP listener that listens to a port (argv[1], defaulting to 8088 if not specified), and handles POST requests to /fibonacci by responding with the fibonacci number of the indicated sequence.
I've added a second handler /sum to it as another part of my experiments.