November 2017
Intermediate to advanced
670 pages
17h 35m
English
We start by importing our typeclass code (located in the src directory, where we store all project-local packages):
package mainimport ( "typeclass" "fmt")func main() { int42 := typeclass.Int(42) str42 := typeclass.String("42") fmt.Println("str42.Equals(int42):", str42.Equals(int42))
The output is as follows:
str42.Equals(int42): true