Go Course — GameCodeLearn Go by forging tools in the Thunder Forges, where every program is a piece of volcanic engineering.First Steps in the ForgesYour First Program in GoVariables with var and :=Comments: // and /* */Basic Types and Printf with %TConstants with constChapter 1: Variables and TypesExplicit Declaration with varType Inference with :=Integer Types: int8 to uintDecimal Precision: float32 and float64String Concatenation and Escape CharactersBooleans and Comparison OperatorsDefault Values: Zero ValuesType Conversion with SprintfDeclaring Multiple Variables: var() and :=Variable ScopeChapter 2: StringsRegular Strings and Raw StringsBuilding Messages with ConcatenationFormatting Strings with SprintfString Length: Bytes vs RunesSearching in Strings: Contains, HasPrefix, and HasSuffixReplacing Text: Replace and ReplaceAllSplitting and Joining Strings: Split and JoinUppercase and Lowercase: ToUpper and ToLowerTrimming Strings: TrimSpace and TrimPrefixFinding Positions: Index and CountChapter 3: OperatorsArithmetic Operators: +, -, *, and /Modulo and Division: The % OperatorAssignment Operators: += and ++Comparison Operators: == and !=Logical Operators: && and ||Operator Precedence and ParenthesesBitwise Operators: &, |, and <<Comparing Strings: Lexicographic OrderCombined Expressions: Arithmetic and LogicProject: Calculator with Combined OperatorsChapter 4: ConditionalsConditionals: The if StatementTwo Paths: if-elseChaining Conditions: if / else if / elseif with Initialization: if-initComparison vs Assignment: == and =Combining Conditions with && and ||The switch StatementGrouping Values in a caseSwitch Without an Expression: Boolean CasesContinuing Cases with fallthroughNested ConditionalsProject: Classifier with if and switchChapter 5: LoopsThe for Loop: Init, Condition, and PostWhile-Style for LoopInfinite Loop and breakSkipping Iterations with continueIterating Over Strings with for rangeNested Loops: Rows and ColumnsAccumulators and Averages in LoopsBoolean Flags for SearchesCounters and Classification with ModuloProject: Patterns with Nested LoopsChapter 6: FunctionsDeclaring Functions with funcFunctions with Parameters and ArgumentsFunctions with a Return ValueMultiple Return ValuesNamed ReturnsVariadic Functions with ...typeFunctions as ValuesAnonymous FunctionsDeferring Execution with deferProject: Combining Reusable FunctionsChapter 7: Slices and MapsFixed-Size ArraysSlices: How They Differ from ArraysAdding Elements with append()Slicing: slice[start:end]Iterating Over Slices with for rangeSlices as Function ParametersMaps: Creating Them with map[string]typeModifying Maps: comma-ok and delete()Iterating Over Maps with for rangeProject: Combining Slices and MapsChapter 8: Structs and InterfacesDefining Structs with typeAccessing and Modifying Struct FieldsStructs as Parameters: Pass by ValueMethods with Value ReceiversMethods with Pointer ReceiversStruct Composition: EmbeddingInterfaces: Defining BehaviorPolymorphism with Interfacesinterface{} and Type AssertionsProject: Structs, Methods, and InterfacesChapter 9: The Final TrialsProject: Inventory with Structs and SlicesProject: Calculator with Error HandlingProject: Registry with Structs and MapsProject: Ranking with Manual SortingFinal Project: Structs, Interfaces, and Maps