Go main packages can be tested as well, so add a serve_test.go and write some tests.
Consider moving the helper functions into their own package, where it makes sense to export them, which in turn makes it more idiomatic to test them (instead of using the main package in serve_test.go).
Go
main
packages can be tested as well, so add aserve_test.go
and write some tests.Consider moving the helper functions into their own package, where it makes sense to export them, which in turn makes it more idiomatic to test them (instead of using the
main
package inserve_test.go
).