All public logs

Jump to navigation Jump to search

Combined display of all available logs of NovaOrdis Knowledge Base. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).

Logs
  • 23:26, 13 August 2024 Ovidiu talk contribs created page Go Type Switch (Created page with "=Internal= =Overview= A type switch is a new control structure introduced by Go. Type assertion with <code>switch</code>: <syntaxhighlight lang='go'> var i SomeInterface i = TypeA{"A"} switch v := i.(type) { case TypeA: fmt.Printf("TypeA: %v\n", v) case TypeB: fmt.Printf("TypeB: %v\n", v) } </syntaxhighlight>")