Glossary: Data Structures and Algorithms in Go
Comma-ok idiom
Also written: v, ok := m[key], ok flag
Go's way to report whether something worked without exceptions: a second `ok` result that is `false` when a map key is missing or a stack is empty.
Glossary: Data Structures and Algorithms in Go
Also written: v, ok := m[key], ok flag
Go's way to report whether something worked without exceptions: a second `ok` result that is `false` when a map key is missing or a stack is empty.