Using Arrays and Slices in Go

Similar Posts

  • Math in Go

    Performing Math in Go is like many other programing languages in many ways. Of course, the standard mathematical symbols apply: Operator Description + Addition – Subtraction * Multiplication / Quotient % Remainder & Bitwise AND | Bitwise OR ^ Bitwise XOR &^ Bit clear (AND NOT) << Left shift >> Right shift (logical) The Math…

  • A First App in Go

    After you install Go, we need to check to see if it is configured properly. Things work better with a Go Path set. This is usually under your home directory. In Windows that would be C:\Users\<username>\go most likely. You can check this by going to the command prompt and typing: This is going to do…

  • Working with Maps in Go

    Working with a Map in Go is like Dictionaries in Python, or Maps in Java. A Map stores information as key/value pairs. This is a nice thing about data structures, they are often found in other languages. Defining the Map When you define one in Go, you need to define the variable as a type…

  • Basic Variables in Dart

    Dart has some basic variables types that are available for you to use. Inferred Definitions Dart doesn’t require you to define the data type when you define a variable. You can use the var keyword and Dart will infer the data type based upon what it sees. Implicit Definitions Likewise, you can define the data…

  • Complex Data Types That Come with Your Language

    Complex data types are usually classes. Some might be supplied by the language, while others are user defined. Complex data types have methods built in for working with the data, libraries that come with the language (potentially) and will vary from language to language on how they are stored and handled. The types of data…

  • Installing Go

    When installing Go, you have a couple of options. Source Code First, you can install from source code, which means you will need to compile the source code. This allows for a lot of flexibility. However, the code base itself is written in Go, so you will need to download a binary of the Go…