1 package gc 2 3 import ( 4 "fmt" 5 "runtime" 6 ) 7 8 func Main() { 9 fmt.Println("before gc") 10 runtime.GC() 11 fmt.Println("after gc") 12 } 13
View as plain text