在 golang 函数文档中,使用 // version history 注释块记录函数版本历史。它按版本顺序列出函数更改,方便用户跟踪更新:每行以版本号开头,后面是更新描述。版本历史注释提供函数变化的重要信息,帮助用户了解变化背景。
在 Golang 函数文档中表示函数的版本历史
在 Golang 函数文档中使用 // Version History
注释块记录函数的版本历史非常有用。以下是其用法:
// Version History // // - 0.0.1: Initial version // - 0.0.2: Added support for negative numbers // - 0.0.3: Fixed a bug in the input validation