Moved http related functions to their own file; added 'sum.go' for a second endpoint.
This commit is contained in:
@@ -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.
|
||||
Reference in New Issue
Block a user