Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/xliuqq/golang
golang demo project
https://github.com/xliuqq/golang
Last synced: about 2 months ago
JSON representation
golang demo project
- Host: GitHub
- URL: https://github.com/xliuqq/golang
- Owner: xliuqq
- License: apache-2.0
- Created: 2023-11-07T11:08:52.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-29T02:43:14.000Z (8 months ago)
- Last Synced: 2024-05-29T16:11:39.396Z (8 months ago)
- Language: Go
- Size: 22.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# GoLang 语言学习
## 基础- [测试函数闭包: TestClosure](./basic/main_test.go)
## 并发
- volatile.go: [一写多读必须用atomic](./concurrency/main/volatile.go)
- TestOnce: [Once中为什么要采用原子性操作的校验?](./concurrency/once_test.go)
- TestMutex_DoubleLock: [Mutex 不支持重入导致死锁](./concurrency/mutex_test.go)
- TestRWMutex_DeadLock: [两次读锁间其它协程写锁导致死锁](./concurrency/mutex_test.go)
- TestMutexChannel_DeadLock: [Mutex跟Channel同时使用的死锁](./concurrency/mutex_test.go)
- TestUnbufferedChannel_GoRoutineLeak: [不带缓冲的channel导致go routine泄露](./concurrency/channel_test.go)
- TestContext_Blocking: [context改变导致goroutine卡住](./concurrency/channel_test.go)
- TestLocalSharedVariable: [GoRoutines共享闭包变量期望值错误](./concurrency/goroutine_test.go)
- TestTimer_Zero: [值为0的Timer.C会立即触发select执行 ](./concurrency/channel_test.go)## Json
- TestJson_Unmarshal: [通过反射自定义Json序列化和反序列化](./json/json_test.go)## Yaml
- TestYaml_Unmarshal: [通过反射自定义Yaml序列化和反序列化](./yaml/yaml_test.go)## Context
- [context 用法示例](./ctx/ctx.go)
- WithValue 用法
- WithTimeout 用法(含 Cancel 用法)
- TestContext_Cancel: [父Context执行Cancel会执行子Context的cancel](./ctx/context_test.go)
- TestContext_Timeout: [Timeout 超时的用法](./ctx/context_test.go)## HTTP
- sse 示例
- [sse server](./http/server.go)
- [sse client](./http/client.go)
- websocket 示例
- [websocket server](./http/ws_server.go)
- [websocket client](./http/ws_client.go)