Golang 入门笔记
更多Golang资料包:扫码进入Github 1. 算术运算符 算数运算符就是对数值类型的变量进行运算的,比如,加减乘除。在Go中运用非常的多 算数运算符 除法演示 //说明,如果运算的数都是整数,那么除后,将会去除小数位 fmt.Println(10 / 4) //2 var n1 float32 = 10 / 4 fmt.Println(n1) //2 //如果我们希望保留小数,那么就需要有浮点数参与运算 这样我们可以看到取模的一个本质运算 3. Golang 的自增只能当做一个独立的语言使用时,不能这样使用 b := a++ 或者 b := a-- 错误用法 4. Golang 的 ++ 和 -- 只能写在变量的后面,不能写在变量的前面,即,只有 a++, a-- 没有 ++a, --A 错误演示 5. Golang 的设计者去掉了 c/java 中自增和自减的容易混淆的写法,让golang 更加简介,统一(强制性) 我们直接输出 byte 的时候他是直接输出了字符的码值 如果我们需要输出对应的字符,需要格式化输出 测试案例 实验案例 注意事项(使用细节) 1. Golang 字符串的字节使用 UTF-8编码进行表示 Unicode 文本,这样golang 统一适用了 utf-8 变么,就能避免了中文乱码的问题 2. 字符串一旦定义就不能修改 错误案例: var str1 string = "124" str1[1]0 码力 | 2 页 | 511.29 KB | 1 年前3Golang Warsaw #54
Golang Warsaw #54 26 October 2023 – 18:30 7N, Puławska 182, WarszawaHostSponsorsAgenda 1. Go-first End to End Tests for Highly Stateful Features - Kuba Martin 2. Break / Your announcements (OpenSource Jakub Daliga, Lukasz Gut 4. Afterparty, slowly moving to a place close byLooking for speakers! • Golang specifics • Software engineering (implement/use/best practices) • Tech leadership and/or management jakubdal@gmail.com, wbarczynski@gmail.com Twitter/X: @golangwaw Slides: github.com/golangpoland/meetup_golang_warsaw Job Board: facebook.com/groups/golangpolandjobsQuestions? Join channel #poland on gophers0 码力 | 7 页 | 1.66 MB | 5 月前3Golang Warsaw #54
Golang Warsaw #54 26 October 2023 – 18:30 7N, Puławska 182, WarszawaHostSponsorsAgenda 1. Go-first End to End Tests for Highly Stateful Features - Kuba Martin 2. Break / Your announcements (OpenSource Jakub Daliga, Lukasz Gut 4. Afterparty, slowly moving to a place close byLooking for speakers! • Golang specifics • Software engineering (implement/use/best practices) • Tech leadership and/or management jakubdal@gmail.com, wbarczynski@gmail.com Twitter/X: @golangwaw Slides: github.com/golangpoland/meetup_golang_warsaw Job Board: facebook.com/groups/golangpolandjobsQuestions? Join channel #poland on gophers0 码力 | 7 页 | 833.54 KB | 5 月前3Golang Warsaw #53
Golang Warsaw #53 20 September 2023 – 18:30 Connectis_ (Varso Place), Chmielna 71, WarszawaHostSponsorsAgenda 1. Transitioning to Go - Robert Pajak 2. Break / Your announcements (OpenSource, event Kovalov 4. Afterparty, slowly moving to a place close byJoin Slido for Q&ALooking for speakers! • Golang specifics • Software engineering (implement/use/best practices) • Tech leadership and/or management jakubdal@gmail.com, wbarczynski@gmail.com Twitter/X: @golangwaw Slides: github.com/golangpoland/meetup_golang_warsaw Job Board: facebook.com/groups/golangpolandjobsQuestions? Join channel #poland on gophers0 码力 | 8 页 | 1.63 MB | 5 月前3Golang Warsaw #55
Golang Warsaw #55 24 January 2024 – 18:00 Okta – Koszykowa 61, WarsawHostSponsorsAgenda 1. Go-first End to End Tests for Highly Stateful Features - Kuba Martin 2. Break / Your announcements (OpenSource Jakub Daliga, Lukasz Gut 4. Afterparty, slowly moving to a place close byLooking for speakers! • Golang specifics • Software engineering (implement/use/best practices) • Tech leadership and/or management jakubdal@gmail.com, wbarczynski@gmail.com Twitter/X: @golangwaw Slides: github.com/golangpoland/meetup_golang_warsaw Job Board: facebook.com/groups/golangpolandjobsQuestions? Join channel #poland on gophers0 码力 | 7 页 | 1.34 MB | 5 月前3Golang Warsaw #53
Golang Warsaw #53 20 September 2023 – 18:30 Connectis_ (Varso Place), Chmielna 71, WarszawaHostSponsorsAgenda 1. Transitioning to Go - Robert Pajak 2. Break / Your announcements (OpenSource, event Kovalov 4. Afterparty, slowly moving to a place close byJoin Slido for Q&ALooking for speakers! • Golang specifics • Software engineering (implement/use/best practices) • Tech leadership and/or management jakubdal@gmail.com, wbarczynski@gmail.com Twitter/X: @golangwaw Slides: github.com/golangpoland/meetup_golang_warsaw Job Board: facebook.com/groups/golangpolandjobsQuestions? Join channel #poland on gophers0 码力 | 8 页 | 821.41 KB | 4 月前3Build web application with Golang
validation Multi-language support pprof Summary References preface 4 Build Web Application with Golang Purpose Because I'm interested in web application development, I used my free time to write this operating systems. This is probably the easiest way to get started. You can get the installers from the Golang Download Page. Install it yourself from source code. Popular with developers who are familiar with add-apt-repository ppa:gophers/go sudo apt-get update sudo apt-get install golang-go wget wget https://storage.googleapis.com/golang/go1.8.3.linux-amd64.tar.gz sudo tar -xzf go1.8.3.linux-amd64.tar.gz -C0 码力 | 327 页 | 1.63 MB | 1 年前3Golang Manual By AstaXie-20120522
writing idiomatic Go code. For the full story, consult Go's extensive documentation. Subscribe to the golang-announce mailing list to be notified when a new stable version of Go is released. Community resources several Go programs deployed in production inside Google. A public example is the server behind http://golang.org. It's just the godoc document server running in a production configuration on Google App Engine languages. However, if you choose to add the Google logo or branding to your site (it does not appear on golang.org), you will need to abide by the guidelines at http://www.google.com/permissions/guidelines.html0 码力 | 6205 页 | 12.83 MB | 1 年前3Go语言基础 Golang Fundaments
Go语言基础 Golang Fundaments 中山大学 数据科学与计算学院 潘茂林 panml@mail.sysu.edu.cn 大纲 • Golang-设计哲学 • 基础知识学习 • Go语言的入门资源 • 本地项目工作空间组织 • 开始编程 Golang-设计哲学 我们需要什么样的语言 • 曾经 – 我们对包含大量代码的程序印象深刻。 – 我们努力在代码库中创建大型抽象。 – 性能 – 微优化 Ultimate Go,https://github.com/ardanlabs/gotraining/blob/master/topics/go/README.md Golang-设计哲学 • 面向数据的设计(Data-Oriented Design) “数据占主导地位。如果您选择了正确的数据结构,并 且组织得很好,那么算法几乎总是不言自明的。数据结 构,而不是算法,是编程的核心。”——罗伯•派克 接口的标准化可以建立清晰和一致的期望。 • 面向包的设计(Package-Oriented Design) • 并发软件设计(Concurrent Software Design) • 管道设计(Channel Design) Golang-设计哲学 • 实用主义的语言风格 – 面向编译器的静态类型语言 • 数据类型必须在编译阶段确定 • 语言能充分发挥编译优化技术 – 复古且简便的语言 • 集合了多种语言实用的语法表示0 码力 | 21 页 | 851.30 KB | 1 年前3Hello 算法 1.0.0 Golang版
0 码力 | 382 页 | 17.60 MB | 1 年前3
共 414 条
- 1
- 2
- 3
- 4
- 5
- 6
- 42