mirror of
https://github.com/SourceFellows/gobuch.git
synced 2025-11-04 15:46:17 +01: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