TECH(K)NOW DAY TAIPEI
Saturday, 20 April 2019 from 09:00 to 18:00 (CST)
Workshop 03 - GoLang
The repository is the example code of the Golang workshop
Links:
Event Details and Ticket Information
Let's Go for Web!
How to build a web service with golang step-by-step.
Slide Contents
- Intrudoction
- Install
- Basic Knowledge
- RESTful API
- HTML Template
- Static Assets
- Post Form
- User Login
- Cookie
- Socket
Installation
To run the example, you need to install gin and melody
$ go get -u github.com/gin-gonic/gin
$ go get -u gopkg.in/olahol/melody.v1
Quick Start
# run main.go and visit localhost:8080/ on browser
$ go run main.go
Web routers
localhost:8080/
localhost:8080/login
localhost:8080/chat
localhost:8080/ws
File tree
.
├── README.md
├── Slides
│ ├── 01. Introduction.pptx
│ ├── 02. RESTful API Service.pptx
│ └── 03. User Login.pptx
├── assets
│ └── images
│ └── gopher.png
├── main.go
└── templates
├── chat.html.tmpl
├── header.html.tmpl
├── index.html.tmpl
└── login.html.tmpl