4 ms·
Too late, Go already has exceptions since 1.0.
by mseepgood 5y ago
Too late, Go already has exceptions since 1.0.
- pjmlp 5y agoIndeeed, func ThrowIfError(err error) { if err != nil { panic(err) } } // .... name, err := FuncWithError() ThrowIfError(err)