偶然发现一个比较好用的工具,可以用它作为学习任何一门编程语言reminder。
cheat.sh
这就是要介绍的主角了。不需要安装,只要联网且有http服务就可以岁时查询任何编程语言的一些语法和关键字。
cheat.sh的四种格式:
curl cheat.sh/tar
curl cht.sh/curl
curl https://cheat.sh/rsync
curl https://cht.sh/tr
用法:curl+cht.sh/编程语言名称/需要查询的关键字或者问题
举个例子:
curl cht.sh/go/Pointers ##查询go语言中指针
[root@79 Desktop]# curl cht.sh/go/Pointers
p := Vertex{
1, 2} // p is a Vertex
q := &p // q is a pointer to a Vertex
r := &Vertex{
1, 2} // r is also a pointer to a Vertex
// The type of a pointer to