Short Declare Time to declare a few variables using the short declaration syntax. You'll also use the redeclaration and discarding. Short Declare Multiple Short Declare Multiple Short Declare #2 Short
阅读全文
go 03-comments
Why do you need to use comments sometimes? To combine different expressions together To provide explanations or generating automatic documentation for your code CORRECT To make the code look nice and
阅读全文
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 02-expressions
Please check out the questions inside the statements directory.
阅读全文
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
阅读全文