Skip to content

Instantly share code, notes, and snippets.

View MassiGy's full-sized avatar
😇
ready to help

Massiles Ghernaout MassiGy

😇
ready to help
View GitHub Profile

Understanding go modules.

Before Go 1.11, Go developers had only one choice on how and where to write Go code, they had to be working under $GOPATH. This path is usually under $HOME/go, and in there we can find these directories:

    $ ls $GOPATH
 - src/ pkg/ bin/

How to create a shared go module and use it in other projects.

Intro


There is three main ways to setup and use shared libraries in Go. You can either: - Use go workspaces. (link n°1) - Write your code/modules in the `$GOPATH/src` folder, thus you'll have access to all the installed packages. (link n°2) - Write your shared go modules under the same parent directory. (link n°3)

How to import remote private modules using go toolchain?




In this tutorial, we will explain how you can use shared golang code by importing remote gitlab repos to your current project. For this tutorial, we assume that the gitlab instance is a private one, and it is hosted by a company internally. So all the shared modules are private from the go toolchain standpoint. By the same token, this tutorial will only benefit developers working for that given company. And since I am working for Renault, the examples will be derived from what I see/use at work.

First of all, as a developer make sure to connect to your vpn if you are working remotely.

Let's learn about abstract classes vs interfaces.

Ressources:

Let's learn about generic programming with java.

Ressources:

Binary Search Trees Analytics | Analyse des arbres binaires de recherches.

Description et introduction:

Les arbres binaires de recherche, ou bien ABR, sont des structures de données qui nous permettent d'optimiser certaines opérations, qui seraient trop coûteuses si appliquées sur d'autres structures de données, comme les listes chaînées.