Code created while working through "100 Go mistakes and how to avoid them" by Teiva Harsanyi.
0

Configure Feed

Select the types of activity you want to include in your feed.

feat: add no47

Gabriel (Jul 11, 2024, 7:20 AM +0200) 3e0cfeb1 7aae3c1c

+15
+15
no47/main.go
··· 1 + package main 2 + 3 + import "fmt" 4 + 5 + func printStr(s string) { 6 + fmt.Println(s) 7 + } 8 + 9 + func main() { 10 + s := "default" 11 + defer func() { 12 + printStr(s) 13 + }() 14 + s = "hello" 15 + }