Go Programming

  1. Go Language Basics
    1. Program Structure
      1. Package System
        1. Package Declaration
          1. Main Package
            1. Library Packages
              1. Package Naming Conventions
              2. Import System
                1. Import Statement Syntax
                  1. Standard Library Imports
                    1. Third-Party Package Imports
                      1. Import Aliases
                        1. Blank Imports
                        2. Basic Program Anatomy
                          1. Package Declaration
                            1. Import Statements
                              1. Function Definitions
                                1. Main Function
                              2. Variables and Constants
                                1. Variable Declaration
                                  1. var Keyword
                                    1. Short Declaration Operator
                                      1. Multiple Variable Declaration
                                        1. Declaration with Initialization
                                        2. Variable Scope
                                          1. Package-Level Variables
                                            1. Function-Level Variables
                                              1. Block-Level Variables
                                                1. Variable Shadowing
                                                2. Zero Values
                                                  1. Default Values by Type
                                                    1. Initialization Behavior
                                                    2. Constants
                                                      1. Constant Declaration
                                                        1. Typed vs Untyped Constants
                                                          1. Constant Expressions
                                                            1. Iota Enumerator
                                                          2. Data Types
                                                            1. Boolean Type
                                                              1. bool Type
                                                                1. Boolean Operations
                                                                  1. Truth Values
                                                                  2. Numeric Types
                                                                    1. Integer Types
                                                                      1. Signed Integers
                                                                        1. Unsigned Integers
                                                                          1. Platform-Dependent Sizes
                                                                            1. Overflow Behavior
                                                                            2. Floating-Point Types
                                                                              1. float32 and float64
                                                                                1. Precision Considerations
                                                                                  1. Special Values
                                                                                  2. Complex Types
                                                                                    1. complex64 and complex128
                                                                                      1. Complex Number Operations
                                                                                    2. String Type
                                                                                      1. String Literals
                                                                                        1. String Immutability
                                                                                          1. String Operations
                                                                                            1. Raw String Literals
                                                                                            2. Rune Type
                                                                                              1. Unicode Code Points
                                                                                                1. Rune Literals
                                                                                                  1. UTF-8 Encoding
                                                                                                  2. Type Conversions
                                                                                                    1. Explicit Type Conversion
                                                                                                      1. Conversion Rules
                                                                                                        1. Precision Loss Considerations
                                                                                                      2. Functions
                                                                                                        1. Function Declaration
                                                                                                          1. Function Syntax
                                                                                                            1. Parameter Lists
                                                                                                              1. Return Types
                                                                                                                1. Function Naming
                                                                                                                2. Function Parameters
                                                                                                                  1. Parameter Types
                                                                                                                    1. Pass by Value
                                                                                                                      1. Multiple Parameters
                                                                                                                      2. Return Values
                                                                                                                        1. Single Return Values
                                                                                                                          1. Multiple Return Values
                                                                                                                            1. Named Return Values
                                                                                                                              1. Naked Returns
                                                                                                                              2. Variadic Functions
                                                                                                                                1. Variadic Parameter Syntax
                                                                                                                                  1. Working with Variadic Arguments
                                                                                                                                  2. Function Types
                                                                                                                                    1. Functions as Values
                                                                                                                                      1. Function Variables
                                                                                                                                        1. Anonymous Functions
                                                                                                                                          1. Closures
                                                                                                                                          2. Defer Statement
                                                                                                                                            1. Defer Mechanics
                                                                                                                                              1. Execution Order
                                                                                                                                                1. Common Use Cases
                                                                                                                                                  1. Defer with Function Literals