basics/

directory
v0.0.0-...-8a36715 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2016 License: Apache-2.0

README

Web - Basics

Learn the basics of building web services and applications in Go.

Notes

  • The standard library has much of what you need to build services and apps.
  • The http package provides the building blocks.

https://golang.org/pkg/net/http/
https://golang.org/doc/articles/wiki/

Code Review

Simple Web Service
Using a New Server Mux
User Defined Handler I
User Defined Handler II
Concurrency

Exercises

Exercise 1

Write a simple web service that has a set of different routes that return the string "Hello World" in multiple languages. Build the service using an Application context that will own the different handler methods. Then create your own mux, bind the routes and start the service. Validate your routes work in your browser.


All material is licensed under the Apache License Version 2.0, January 2004.

Directories

Path Synopsis
Sample program to show how to create a simple web service.
Sample program to show how to create a simple web service.
Sample program to show how to create and use your own mux.
Sample program to show how to create and use your own mux.
Sample program to show how to implement your own Handler.
Sample program to show how to implement your own Handler.
Sample program to show how to implement your own App Handler that can use any provided handler function.
Sample program to show how to implement your own App Handler that can use any provided handler function.
Sample program to show how to run the server using a goroutine and create goroutines to run multiple requests concurrently.
Sample program to show how to run the server using a goroutine and create goroutines to run multiple requests concurrently.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL