static files
Building Web Server with Go - Part 7
· ☕ 5 min read
This is part 7 of 15 part series on building web server with go. Checkout https://www.gophersumit.com/series/web-server/ for more. Working with static files Most of the web applications need to server static file one way or another. These files may include plain html, css, js files or assets like images, audios etc. Go providers built in handler to work with static files. fileserver net/http has FileServer handler defined which returns a static file server.