Explore >> Select a destination


You are here

luketic.de
| | danielmangum.com
2.2 parsecs away

Travel
| | This guide will teach you how to run the Kong API gateway locally as a proxy server for a Golang API using Docker. The Go API Link to heading The Golang standard library has a very simple http library that makes it very easy to spin up a web server. For now, we will build the simplest implementation of a web server. Start by creating a new directory in your go/src/.
| | www.integralist.co.uk
2.2 parsecs away

Travel
| | Introduction Four ways to skin a cat How does the adapter work? Why is this interesting? Summary/Breakdown Introduction Here is some code that demonstrates the typical 'hello world' for a Go based web server: package main import ( "fmt" "net/http" ) func handler(w http.ResponseWriter, r *http.Request) { fmt.Fprintf(w, "Hello %s", r.URL.Path[1:]) } func main() { http.HandleFunc("/World", handler) http.ListenAndServe(":8080", nil) } Note: http://localhost:8080/World will return Hello World For most people,...
| | bartlomiejmika.com
4.4 parsecs away

Travel
| | The purpose of this post is to provide instructions on how to setup a simple RESTful API server, in Golang, using only the net/http package and not any other third-party web framework. You will learn how to create REST endpoints within your project that can handle POST, GET, PUT and DELETE HTTP requests. This is the first post in a multi-post series.
| | devopsian.net
21.6 parsecs away

Travel
| Practical web client unit-testing in Go by mocking the server side, with examples from my first open-source project