Skip to content

Commit 77656bf

Browse files
committed
refactor: 重构 go 部分目录
1 parent fd168d3 commit 77656bf

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+32
-13
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package main
2+
3+
import "runtime"
4+
import "fmt"
5+
6+
func main() {
7+
runtime.GOMAXPROCS(2)
8+
go func() {
9+
// 永远不会输出
10+
fmt.Println("hello world")
11+
}()
12+
go func() {
13+
for {
14+
15+
}
16+
}()
17+
select {}
18+
}

language/go/snippets/cmd/cmdargs/cmdargs.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ Positional Arguments:
2727
Flags:
2828
`
2929

30+
// MenuConf 配置
3031
type MenuConf struct {
3132
Goodbye bool
3233
}
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)