mirror of
https://github.com/golang/go.git
synced 2024-11-22 05:40:42 +00:00
Add index entry
parent
95a662c846
commit
c24ce77e08
@ -27,6 +27,7 @@ Add new sections as appropriate.
|
||||
- [Porting](#porting)
|
||||
- [Time](#time)
|
||||
- [Type System](#type-system)
|
||||
- [Shorthand declaration](#Shorthand-declaration)
|
||||
|
||||
## Context
|
||||
|
||||
@ -114,6 +115,6 @@ a 'class' keyword that simply makes a struct to also be an interface to make por
|
||||
|
||||
- Sam Whited, “[Faking Enumeration Types with Consts and Unexported Types](https://gist.github.com/SamWhited/6cdbc49b4562e1a1b0526af523f5c5d7)”, July 2017, about attempting to ensure compile time correctness of values provided to an API using the type system.
|
||||
|
||||
## Shorthand declaration `:=`
|
||||
## Shorthand declaration
|
||||
|
||||
- Christophe Meessen, "[Problems with Go's shorthand declaration :=](https://gist.github.com/chmike/ac0113afefbc04e67323b4a3688d6b54#file-godeclareproblem-md)", July 2017, about the shadowing var trap and apparent inconsistency of `:=`.
|
Loading…
Reference in New Issue
Block a user