Skip to content

Go 空结构体 struct{} 的使用 | Go 语言高性能编程 | 极客兔兔 #117

@geektutu

Description

@geektutu

https://geektutu.com/post/hpg-empty-struct.html

Go 语言/golang 高性能编程,Go 语言进阶教程,Go 语言高性能编程(high performance go)。本文介绍了使用空 struct{}/空结构体的优点:不占用内存,且具有良好的语义。

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions