Go Nil

From NovaOrdis Knowledge Base
Revision as of 00:55, 23 August 2023 by Ovidiu (talk | contribs) (→‎Overview)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Overview

nil is the Go pre-declared zero value.

nil Test

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

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