- 可直接编译成机器码
- 不依赖其他库
- 直接运行即可部署
- 编译的时候检查出来隐藏的大多数问题
- 天生的基因支持
- 充分的利用多核
- runtime系统调度机制
- 高效的GC垃圾回收
- 丰富的标准库
- 25个关键字
- C语言简洁基因,内嵌C语法支持
- 面向对象特征(封装,继承,多态)
- 跨平台
- main.go
- mars.go
- guess_game.go
- loop_and_branch.go
- variable_and_scopes.go
- real_number.go
- integer.go
- large_number.go
- text.go
- convert.go
- function.go
- method.go
- first_order_function1.go
- first_order_function2.go
- closures_and_anonymous_functions.go
- array.go
- slice.go
- large_slice.go
- map.go
- struct.go
- composition_and_forwarding.go
- Interface.go
- pointer.go
- pointer2.go
- nil.go
- error_handling.go
- goroutine.go
- channel.go
- blocking_and_deadlock.go
- concurrency_status.go
study some go example
- hello world
- value
- variables
- constants
- for
- if else
- switch
- arrays
- slices
- maps
- range
- functions
- multiple_return_values
- variadic_functions
- closures.go
- recursion.go