Skip to content

Commit 49a86a0

Browse files
committed
oops: 01
1 parent 039599d commit 49a86a0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

main.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@ import "fmt"
55
func main() {
66
fmt.Println("Hello")
77
}
8+
9+
func foo(a string) error {
10+
if a == "a" {
11+
return nil
12+
}
13+
14+
return fmt.Errorf("OOPS")
15+
}

0 commit comments

Comments
 (0)