(source code)
package main
import ( "fmt")
type T struct { id int}
func main() { t1 := T{id: 1} t2 := T{id: 2} ts1 :=…
Composite types are containers for other values. In Golang composite types are…
This story introduces another set of interfaces-related topics in Golang. It explains things like method…
Interfaces make the code more flexible, scalable and it’s a way to achieve polymorphism in Golang. Instead of…
Unicode plays quite nicely with Golang. Programmer doesn’t have to mark unicode strings in any special way:
Let’s say you have foo/foo.go:
package foo
type F struct { X string y string}
and bar/bar.go:
import ( "fmt" "github.com/mlowicki/foo")
func main() { v :=…