mirror of
https://github.com/golang/go.git
synced 2025-05-05 23:53:05 +00:00
Updated How to ask for help (markdown)
parent
827829f7d3
commit
7785a2ef36
@ -15,6 +15,12 @@ if err != nil {
|
|||||||
}
|
}
|
||||||
// the code then continues to use result which is invalid.
|
// the code then continues to use result which is invalid.
|
||||||
```
|
```
|
||||||
|
or
|
||||||
|
```
|
||||||
|
result, _ := somefunction()
|
||||||
|
// code uses result which might be invalid
|
||||||
|
```
|
||||||
|
You should make sure it is clear that your code is correctly handling all error conditions before asking for help.
|
||||||
|
|
||||||
Further reading:
|
Further reading:
|
||||||
- [Error handling and Go][0]
|
- [Error handling and Go][0]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user