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¶
Golang implements the type
Tuple
in the standard librarygo/types
, however,Tuple
is NOT a first class citizen in Golang.Multiple return parameters in Golang is implemented via
Tuple
in a limited way (sinceTuple
Tips on Golang
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
The package main
tells the Go compiler that
the package should compile as an executable program instead of a shared library.
The main
function in the main
package is the entry point of the program.
Strings in Golang Are UTF-8
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
Unicode¶
Hands on the filepath Library in Golang
Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!