当前位置:网站首页>[Yugong series] go teaching course in July 2022 004 go code Notes
[Yugong series] go teaching course in July 2022 004 go code Notes
2022-07-05 20:16:00 【InfoQ】
Preface
1. The definition of annotation
2. The function of annotation
One 、Go code annotation
1. Single-line comments
//
// Add Addition of two numbers ( This line will be intercepted as a brief introduction )
// Precautions and principle of adding two numbers ( This line is a super detailed introduction )
func Add(n1,n2 int)int{
return n1+n2
}
2. Multiline comment
/*
*/
/*
regexp The package implements a simple library for regular expressions .
The regular expression syntax accepted by the library is :
regexp:
concatenation { '|' concatenation }
concatenation:
{ closure }
closure:
term [ '*' | '+' | '?' ]
term:
'^'
'$'
'.'
character
'[' [ '^' ] character-ranges ']'
'(' regexp ')'
*/
package regexp
summary

边栏推荐
- JVMRandom不可设置种子|问题追溯|源码追溯
- 解决php无法将string转换为json的办法
- BZOJ 3747 POI2015 Kinoman 段树
- How to retrieve the root password of MySQL if you forget it
- [quick start of Digital IC Verification] 3. Introduction to the whole process of Digital IC Design
- Build your own website (16)
- Leetcode skimming: binary tree 16 (path sum)
- leetcode刷题:二叉树16(路径总和)
- 1:引文;
- selenium 元素信息
猜你喜欢
【数字IC验证快速入门】6、Questasim 快速上手使用(以全加器设计与验证为例)
解决Thinkphp框架应用目录下数据库配置信息修改后依然按默认方式连接
[quick start of Digital IC Verification] 6. Quick start of questasim (taking the design and verification of full adder as an example)
解决php无法将string转换为json的办法
[quick start of Digital IC Verification] 9. Finite state machine (FSM) necessary for Verilog RTL design
Debezium series: record the messages parsed by debezium and the solutions after the MariaDB database deletes multiple temporary tables
leetcode刷题:二叉树10(完全二叉树的节点个数)
Convolution free backbone network: Pyramid transformer to improve the accuracy of target detection / segmentation and other tasks (with source code)
Securerandom things | true and false random numbers
Go language | 01 wsl+vscode environment construction pit avoidance Guide
随机推荐
How to retrieve the root password of MySQL if you forget it
leetcode刷题:二叉树12(二叉树的所有路径)
什么是pyc文件
leetcode刷题:二叉树17(从中序与后序遍历序列构造二叉树)
随机数生成的四种方法|Random|Math|ThreadLocalRandom|SecurityRandom
14. Users, groups, and permissions (14)
MySql的root密码忘记该怎么找回
SecureRandom那些事|真伪随机数
sort和投影
计算lnx的一种方式
解决php无法将string转换为json的办法
走入并行的世界
When JS method passes long type ID value, precision loss will occur
基金网上开户安全吗?去哪里开,可以拿到低佣金?
Leetcode skimming: binary tree 10 (number of nodes of a complete binary tree)
js实现禁止网页缩放(Ctrl+鼠标、+、-缩放有效亲测)
【愚公系列】2022年7月 Go教学课程 004-Go代码注释
怎么挑选好的外盘平台,安全正规的?
[quick start of Digital IC Verification] 7. Basic knowledge of digital circuits necessary for verification positions (including common interview questions)
【数字IC验证快速入门】8、数字IC中的典型电路及其对应的Verilog描述方法