![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 772 阅读 · 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 · 1073 阅读 · 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 · 933 阅读 · 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 · 1199 阅读 · 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 · 876 阅读 · 0 评论