go 01-statements

Which one is the correct description for a statement? A statement instructs Go to do something CORRECT A statement produces a value A statement can't change the execution flow 2: A statement can't pro
阅读全文

go exercises

Shy Semicolons Observe how Go fixes semicolons for you. Naked Expression Observe what happens when you use an expression without a statement. Operators Combine Try using operators to combine expressio
阅读全文

go README

There are 17 exercises in this section. You can find them inside the subdirectories.
阅读全文

go Slice Quizzes

Slice Quizzes Slices vs Arrays Appending Slicing Backing Array Slice Header Capacity The Mechanics of Append Advanced Slice Operations
阅读全文

go WARNING

WARNING For the code in this section, you should install my prettyslice library. STEPS Open your command-line Type: go get -u github.com/inancgumus/prettyslice That's all.
阅读全文

go Slice Exercises

Slice Exercises Exercises Level I - Basics — Warm-Up Let's reinforce your basic knowledge of slices. Declare nil slices Assign empty slices Assign slice literals Declare the arrays as slices Fix the P
阅读全文

go 01-packages-A

属于同一个包的源代码存储在哪里? 每个文件应该存储在不同的目录 在同一个目录下 正确 为什么 Go 源代码需要使用 package 语句? 用来导入包 用来让 Go
阅读全文

go 03-scopes

作用域是什么? 可执行的代码块 声明变量的可见性 正确 确定要运行的内容 package awesome import "fmt" var enabled bool func block() { var counter int fmt.Println(counter) } 哪个变量属于包作用域
阅读全文

go 02-packages-B

下面哪一个是 Go 中正确的软件包类型? Empty package Executable package 正确 Transferrable package Librarian package 下面哪一个 package go run 可以执行? Empty package Executable
阅读全文