go exercises

Print the literals Print a few values using the literals Print hexes (optional exercise) Print numbers in hexadecimal
阅读全文

go questions

Which is a correct declaration? var int safe := 3 var safe bool := 3 safe := true CORRECT Which is a correct declaration? var short := true int num := 1 speed := 50 CORRECT num int := 2 Which is a cor
阅读全文

go Short Declare

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 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
阅读全文