8000 GitHub - fiyuang/hacktiv8-workshop-go-concurrency
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fiyuang/hacktiv8-workshop-go-concurrency

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Go Concurrency (Hacktiv8 Workshop)

Description

A simple update stock demo with goroutine, sync.Mutex, sync.Waitgroup implementation

Tech Used

GO

Getting Start:

Before you running the program, make sure you've run this command:

  • go mod tidy

Run the program

  • go run main.go
  • go run -race main.go for build-in race detector

The program will run on http://localhost:9090

API Route List

Method URL Description
GET localhost:9090/update-stock Update Stock Demo
GET localhost:9090/update-stock-race Update Stock Demo with Race Condition Example

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0