Working with Packages and Modules in Go

Similar Posts

  • Review of Python

    If you remember from previous classes, Python is a high-level, interpreted, interactive and object-oriented scripting language. It is designed to be highly readable and uses English keywords frequently where other languages use punctuation. Python has fewer syntactical constructions than other languages. Python is commonly used for developing websites and software, task automation, data analysis, and data…

  • Review of C/C++

    C and C++ are high-level programming languages that are widely used for developing system software and application software. They were developed to handle a wide variety of applications and meant to be cross platform compatible, so you only have to recompile your code on the new operating system for it to work. Of course, if…

  • 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…

  • Goroutines and channels

    One of Go’s initial design requirements was to make it easy to create multi-threaded applications. While many languages support multi-threading, it’s not always easy to implement. Go wanted to make it easy to do this. Consider the following code where it runs sequentially. If you run this, every function call to PrintHello() has to complete…