Go
WytheOnly
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
2.Go by Example: Values
Go has various value types including strings, integers, floats, booleans, etc. Here are a few basic examples.Strings, which can be added together with +Integers and floats.Booleans, with boole翻译 2014-02-12 22:06:48 · 1018 阅读 · 0 评论 -
3.Go by Example: Variables
Go by Example: VariablesIn Go, variables are explicitly declared and used by the compiler to e.g. check type-correctness of function calls.var declares 1 or more variables.You can declare mult翻译 2014-02-13 08:10:03 · 1248 阅读 · 0 评论 -
1.Go by Example: Hello World
Go by Example: Hello WorldOur first program will print the classic “hello world” message. Here’s the full source code.package mainimport "fmt"func main() { fmt.Println("hello world")}To run翻译 2014-02-12 21:39:11 · 1117 阅读 · 0 评论 -
4.Go by Example: Constants
Go by Example: ConstantsGo supports constants of character, string, boolean, and numeric values.const declares a constant value.A const statement can appear anywhere a var statement can.翻译 2014-02-14 19:00:41 · 1429 阅读 · 0 评论 -
5.Go by Example: For
Go by Example: Forfor is Go’s only looping construct. Here are three basic types of for loops.The most basic type, with a single condition.A classic initial/condition/after for loop.翻译 2014-02-14 19:07:43 · 1083 阅读 · 0 评论
分享