Things I learned teaching Go
summary
Concrete claims about Go behavior and teachable surprises: interfaces are sets of constraints and satisfy types implicitly; method-set rules mean a value does not satisfy an interface if the method is defined on pointer receivers only; an interface is a (type,value) pair so returning a nil pointer as an interface yields non-nil; slices share underlying arrays (slicing does not copy). Advice: reread the spec, write real Go, publish OSS, get feedback and expect false-friend mistakes.
AI-written summary · about
chapters (5)
- 0:00Start
- 8:24interface{}
- 9:59The method set of any other type T consists of all methods declared with receiver type T.
- 10:49Hillary is 66 years old
- 11:18Hillary 66








