当前位置:网站首页>[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

边栏推荐
- js方法传Long类型id值时会出现精确损失
- leetcode刷题:二叉树15(找树左下角的值)
- 【数字IC验证快速入门】8、数字IC中的典型电路及其对应的Verilog描述方法
- Cocos2d-x项目总结中的一些遇到的问题
- Codeforces Round #804 (Div. 2) - A, B, C
- Elk distributed log analysis system deployment (Huawei cloud)
- Let's talk about threadlocalinsecurerandom
- 图嵌入Graph embedding学习笔记
- [C language] merge sort
- 信息学奥赛一本通 1338:【例3-3】医院设置 | 洛谷 P1364 医院设置
猜你喜欢

Station B up builds the world's first pure red stone neural network, pornographic detection based on deep learning action recognition, Chen Tianqi's course progress of machine science compilation MLC,

Jvmrandom cannot set seeds | problem tracing | source code tracing

Leetcode: binary tree 15 (find the value in the lower left corner of the tree)
![[quick start of Digital IC Verification] 6. Quick start of questasim (taking the design and verification of full adder as an example)](/img/6d/110b87747f0a4be52da9fd49a05b82.png)
[quick start of Digital IC Verification] 6. Quick start of questasim (taking the design and verification of full adder as an example)

Leetcode brush question: binary tree 14 (sum of left leaves)

Rainbond 5.7.1 支持对接多家公有云和集群异常报警

Wechat applet regular expression extraction link

leetcode刷题:二叉树17(从中序与后序遍历序列构造二叉树)

leetcode刷题:二叉树13(相同的树)

基础篇——配置文件解析
随机推荐
Leetcode(695)——岛屿的最大面积
DP: tree DP
Unity editor extended UI control
国信证券在网上开户安全吗?
【数字IC验证快速入门】8、数字IC中的典型电路及其对应的Verilog描述方法
Leetcode skimming: binary tree 10 (number of nodes of a complete binary tree)
随机数生成的四种方法|Random|Math|ThreadLocalRandom|SecurityRandom
USACO3.4 “破锣摇滚”乐队 Raucous Rockers - DP
Leetcode: binary tree 15 (find the value in the lower left corner of the tree)
sun. misc. Base64encoder error reporting solution [easy to understand]
关于BRAM IP复位的优先级
leetcode刷题:二叉树16(路径总和)
Guidelines for application of Shenzhen green and low carbon industry support plan in 2023
js方法传Long类型id值时会出现精确损失
C language OJ gets PE, OJ of ACM introduction~
Station B up builds the world's first pure red stone neural network, pornographic detection based on deep learning action recognition, Chen Tianqi's course progress of machine science compilation MLC,
信息学奥赛一本通 1337:【例3-2】单词查找树 | 洛谷 P5755 [NOI2000] 单词查找树
Where is the operation of new bonds? Is it safer and more reliable to open an account
How to retrieve the root password of MySQL if you forget it
JS implementation prohibits web page zooming (ctrl+ mouse, +, - zooming effective pro test)