Go Nil

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

Internal

Overview

nil is the Go pre-declared zero value.

nil Test

if v == nil {
  // ...
}

if v != nil {
  // ...
}