随笔分类 -  golang

golang
摘要:原文:https://blog.csdn.net/u014633283/article/details/83902020 1. 写在前面我们知道Golang在调用方法时,会自动对实参进行“取引用”或“解引用”操作。我们在前面的博客Golang对方法接收者变量的自动“取引用”和“解引用”中也已经讨论了 阅读全文
posted @ 2023-01-16 17:42 liujiacai 阅读(150) 评论(0) 推荐(0) 编辑
摘要:原文:https://www.cnblogs.com/ludundun/p/16998752.html package main import "fmt" // Golang中的结构体详解 type newInt int // 自定义类型 type myInt = int // 类型别名 type 阅读全文
posted @ 2023-01-16 14:09 liujiacai 阅读(21) 评论(0) 推荐(0) 编辑
摘要:原文:https://www.cnblogs.com/ludundun/p/16992654.html package main import "fmt" // Golang 中的指针 func main() { /* 1.关于指针 指针也是一个变量,但它是一种特殊的变量,它存储的数据不是一个普通的 阅读全文
posted @ 2023-01-16 14:08 liujiacai 阅读(167) 评论(0) 推荐(0) 编辑
摘要:原文:https://www.jianshu.com/p/47a433f66a0b https://www.jianshu.com/p/dd236448b1b9 https://www.jianshu.com/p/18f54ee4ef30 https://www.jianshu.com/p/2c7e 阅读全文
posted @ 2023-01-16 14:05 liujiacai 阅读(64) 评论(0) 推荐(0) 编辑
摘要:原文:https://www.cnblogs.com/beatleC/p/16081832.html 前言:Go语言中new和make是内置函数,主要用来创建分配类型内存(相同点:堆上),其功能相似,却有本质区别。 引入:变量的声明 var i int var s string 变量的声明我们可以通 阅读全文
posted @ 2023-01-15 18:43 liujiacai 阅读(149) 评论(0) 推荐(0) 编辑
摘要:原文:https://www.cnblogs.com/duoke360/p/15663943.html golang函数简介 函数的go语言中的一级公民,我们把所有的功能单元都定义在函数中,可以重复使用。函数包含函数的名称、参数列表和返回值类型,这些构成了函数的签名(signature)。 go语言 阅读全文
posted @ 2023-01-15 16:13 liujiacai 阅读(45) 评论(0) 推荐(0) 编辑
摘要:原文:https://blog.csdn.net/qq_43405330/article/details/119854821 go 的基本命令go 命令的基本用法是:go command [arguments]go 的基本命令有:build, clean, env, fix, fmt, genera 阅读全文
posted @ 2023-01-03 21:48 liujiacai 阅读(189) 评论(0) 推荐(0) 编辑
摘要:原文:https://www.jianshu.com/u/4c83d6b3134b 手撕golang 博主 阅读全文
posted @ 2023-01-01 18:23 liujiacai 阅读(32) 评论(0) 推荐(0) 编辑
摘要:原文:https://www.liwenzhou.com/posts/Go/go_menu/ 阅读全文
posted @ 2021-07-22 22:59 liujiacai 阅读(983) 评论(0) 推荐(0) 编辑
摘要:原文:https://www.jianshu.com/p/66aaf908045e 1、首先需要了解哪些占位符分别代表什么 这些是死知识,把常用的记住,不常用的直接查表就行了 golang 的fmt 包实现了格式化I/O函数,类似于C的 printf 和 scanf。 定义示例类型和变量 type 阅读全文
posted @ 2021-06-14 18:59 liujiacai 阅读(1071) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示