Go 中的注释

Go About 229 words

单行注释

// Add return a and b's sum
func Add(a, b int) int {
    return a + b
}

// User contains age and name
type User struct {
    age  int
    name string
}

多行注释

/*
多行注释
 */
func unfinishedFunc() {
    // TODO unfinished func
}
Views: 2,491 · Posted: 2021-01-12

————        END        ————

Give me a Star, Thanks:)

https://github.com/fendoudebb/LiteNote

扫描下方二维码关注公众号和小程序↓↓↓

扫描下方二维码关注公众号和小程序↓↓↓


Today On History
Browsing Refresh