mirror of
https://github.com/SourceFellows/gobuch.git
synced 2025-07-21 07:30:44 +02:00
initial import
This commit is contained in:
15
best-practices/logging-defer/main.go
Normal file
15
best-practices/logging-defer/main.go
Normal file
@ -0,0 +1,15 @@
|
||||
package main
|
||||
|
||||
import "log"
|
||||
|
||||
func importantStuff() {
|
||||
log.Println("rein")
|
||||
defer log.Println("raus")
|
||||
|
||||
log.Println("drin")
|
||||
|
||||
}
|
||||
|
||||
func main() {
|
||||
importantStuff()
|
||||
}
|
Reference in New Issue
Block a user