Michiel Mulders
Jun 18, 2020 ⋅ 6 min read

Creating a web server with Golang

Michiel Mulders Michiel loves the Node.js and Go programming languages. A backend/core blockchain developer and avid writer, he's very passionate about blockchain technology.

Recent posts:

7 TUI Libraries For Creating Interactive Terminal Apps

7 TUI libraries for creating interactive terminal apps

When writing applications, a good user interface is just as important as the actual app’s functionality. A good user interface […]

Yashodhan Joshi
Jun 14, 2024 ⋅ 18 min read
Expo Router Adoption Guide Overview Examples And Alternatives

Expo Router adoption guide: Overview, examples, and alternatives

Expo Router provides an excellent file-based routing solution with crucial features such as deep linking and native support.

Marie Starck
Jun 13, 2024 ⋅ 8 min read
Superglue Vs. Hotwire For Modern Frontend Development

Superglue vs. Hotwire for modern frontend development

Explore how Superglue and Hotwire revolutionize frontend development with HTML over the wire, enhancing performance, flexibility, and ease of use.

Frank Joseph
Jun 12, 2024 ⋅ 7 min read
Using Pocketbase To Build A Full Stack Application

Using PocketBase to build a full-stack application

PocketBase is a performant Go-based tool that comes with essential features like user auth, file uploads, access control rules, and more.

Rahul Padalkar
Jun 11, 2024 ⋅ 18 min read
View all posts

8 Replies to "Creating a web server with Golang"

  1. Hi Will, at the section “Accept a form submission POST request”, you can find an example with a form request.

    Here’s a more concrete example:

    package main

    import (

    func postRoute(rw http.ResponseWriter, req *http.Request) {
    body, err := ioutil.ReadAll(req.Body)
    if err != nil {

    // further handle request

    func main() {
    http.HandleFunc(“/postRoute”, postRoute)
    log.Fatal(http.ListenAndServe(“:8080”, nil))

    You can find the Gist here: https://gist.github.com/michielmulders/8c32a6978ec7829865608cd631e83c39

    Hope that helps! 👍

  2. Hello Michiel,

    Thanks for the tutorial. I should say awesome tutorial. It’s the first one that actually works ans is so well explained.

  3. I needed something this simple to get my project started. Thank you so much. Would love to see more small simple examples that takes this further.

  4. Michiel – hard to describe how useful this was! Tutorials on the web just used either handle or handlefunc, leaving it unclear which does what and when to choose one over the other. Reading your article made it very clear.

Leave a Reply