• Go-Misc

    Go Workspace Go is designed to work when your code is inside a workspace. The workspace is a folder composed of bin, pkg and src subfolders. In short, create a go folder with a src subfolder wherever you expect to put your projects. The workspace defined by $GOPATH. Simply set... [Read More]
    Tags:
  • GoLang: Concurrency

    Go is often described as a concurrent-friendly language. The reason for this is that it provides a simple syntax over two powerful mechanisms: goroutines and channels. [Read More]
    Tags:
  • Go-Interfaces

    An interface type is defined as a set of method signatures. A value of interface type can hold any value that implements those methods. [Read More]
    Tags:
  • GoLang: Structures and Methods

    Go isn’t an object-oriented (OO) language, so it doesn’t have objects nor inheritance and thus, doesn’t have the many concepts associated with OO such as polymorphism and overloading. [Read More]
    Tags:
  • GoLang: Functions

    A function can take zero or more arguments, and return any number of values. Notice that return types are defined last. [Read More]
    Tags:
  • GoLang: Variables

    Go is statically typed. It uses C-family syntax, but with some differences. To declare the type of a variable, C-family uses prefix: [Read More]
    Tags:
  • Python Notes: Imports and Modules

    Import import module: include a module in the search path. Everything in the module can be accessed by the name module. During import, renaming is made possible by as clause. Without as clause, the module is accessed by the whole module name; otherwise it is accessed by the name provided... [Read More]
    Tags:
  • Python Notes: Basics

    Everything is an object. Python source code is UTF-8 encoded by default. To change it, put an encoding declaration in the first line of the file: # -*- coding: windows-1252 -*-, or the second line if the first line is hash-bang. Install third-party library: in the root folder of the... [Read More]
    Tags: