chore(demos): add demos
This commit is contained in:
parent
11d61810ce
commit
5a0f978586
17 changed files with 188 additions and 0 deletions
11
vhs/iferr.go
Normal file
11
vhs/iferr.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package demos
|
||||
|
||||
func ifErr() {
|
||||
out, err := doSomething()
|
||||
|
||||
_ = out
|
||||
}
|
||||
|
||||
func doSomething() (string, error) {
|
||||
return "", nil
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue