Go Nil: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * Go Language =Overview=")
 
Line 2: Line 2:
* [[Go Language]]
* [[Go Language]]
=Overview=
=Overview=
=<tt>nil</tt> Test=
<syntaxhighlight lang='go'>
if v == nil {
  // ...
}
if v != nil {
  // ...
}
</syntaxhighlight>

Revision as of 00:54, 23 August 2023

Internal

Overview

nil Test

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

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