There are many cases using nil in golang. For example:
func (u *URL) Parse(ref string) (*URL, error) { refurl, err := Parse(ref) if
nil in Go means a zero value for pointers, interfaces, maps, slices, and channels. It means the value is uninitialized