This is how you can do it without a framework, but you can also try Rocket, Actix-Web, or Warp for a more full-featured starting point. For Go, I'd recommend not starting with a framework at all. Just use the standard library, and only add in a third-party solution if your app grows to the point where you need it.
Shameless self-plug, but I wrote a post about getting started with simple framework-less webdev for Rust:
Skip the Framework: Build A Simple Rust API with Hyper
Ben Lovy ・ May 28 ・ 9 min read
This is how you can do it without a framework, but you can also try Rocket, Actix-Web, or Warp for a more full-featured starting point. For Go, I'd recommend not starting with a framework at all. Just use the standard library, and only add in a third-party solution if your app grows to the point where you need it.
Added to my reading list 😍
Appreciate for your help.