当前位置:网站首页>[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
边栏推荐
- Go language | 01 wsl+vscode environment construction pit avoidance Guide
- 信息学奥赛一本通 1338:【例3-3】医院设置 | 洛谷 P1364 医院设置
- E. Singhal and Numbers(质因数分解)
- 图嵌入Graph embedding学习笔记
- Scala基础【HelloWorld代码解析,变量和标识符】
- How to retrieve the root password of MySQL if you forget it
- 银河证券在网上开户安全吗?
- leetcode刷题:二叉树17(从中序与后序遍历序列构造二叉树)
- 基础篇——配置文件解析
- c語言oj得pe,ACM入門之OJ~
猜你喜欢
After 95, Alibaba P7 published the payroll: it's really fragrant to make up this
Practical demonstration: how can the production research team efficiently build the requirements workflow?
leetcode刷题:二叉树14(左叶子之和)
Leetcode skimming: binary tree 12 (all paths of binary tree)
Zero cloud new UI design
秋招字节面试官问你还有什么问题?其实你已经踩雷了
CTF逆向基础
Elk distributed log analysis system deployment (Huawei cloud)
[quick start of Digital IC Verification] 1. Talk about Digital IC Verification, understand the contents of the column, and clarify the learning objectives
Leetcode skimming: binary tree 17 (construct binary tree from middle order and post order traversal sequence)
随机推荐
信息学奥赛一本通 1337:【例3-2】单词查找树 | 洛谷 P5755 [NOI2000] 单词查找树
Scala基础【HelloWorld代码解析,变量和标识符】
14. Users, groups, and permissions (14)
1: Citation;
信息学奥赛一本通 1339:【例3-4】求后序遍历 | 洛谷 P1827 [USACO3.4] 美国血统 American Heritage
A solution to PHP's inability to convert strings into JSON
[quick start of Digital IC Verification] 7. Basic knowledge of digital circuits necessary for verification positions (including common interview questions)
浅浅的谈一下ThreadLocalInsecureRandom
无卷积骨干网络:金字塔Transformer,提升目标检测/分割等任务精度(附源代码)...
股票开户哪里好?网上客户经理开户安全吗
When JS method passes long type ID value, precision loss will occur
Solve the problem that the database configuration information under the ThinkPHP framework application directory is still connected by default after modification
leetcode刷题:二叉树11(平衡二叉树)
Codeforces Round #804 (Div. 2) - A, B, C
Go language learning tutorial (XV)
CCPC 2021威海 - G. Shinyruo and KFC(组合数,小技巧)
E. Singhal and Numbers(质因数分解)
点云文件的.dat文件读取保存
Build your own website (16)
Go language | 03 array, pointer, slice usage