Ben Chuanlong Du's Blog

It is never too late to learn.

Tips on Conda

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. conda and executables installed by conda might not be able to run by sudo directly. If this happends, use the full path of the executable or add the option -E "PATH …

Tips on ValeLang

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

My first impression is that Vale is Rust with GC. It looks interesting. However, consider that it is an language which came ealier than Rust but still in alpha stage, I …

Loop in Golang

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Check Whether a Path Exists in Golang

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips & Traps

There is no built-in function to check for the existence of a path in Golang. However, you can achieve it using os.Stat + os.IsNotExist.

Tuple in Golang

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

Tips and Traps

  1. Golang implements the type Tuple in the standard library go/types, however, Tuple is NOT a first class citizen in Golang.

  2. Multiple return parameters in Golang is implemented via Tuple in a limited way (since Tuple