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
How to build a web service with golang step-by-step.
- Intrudoction
- Install
- Basic Knowledge
- RESTful API
- HTML Template
- Static Assets
- Post Form
- User Login
- Cookie
- Socket
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
# run main.go and visit localhost:8080/ on browser
$ go run main.go
localhost:8080/
localhost:8080/login
localhost:8080/chat
localhost:8080/ws
.
├── 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