1-- .Play -- 2package main 3 4import ( 5 "fmt" 6) 7 8func main() { 9 fmt.Println("Hello, world!") 10} 11-- .Output -- 12Hello, world! 13-- Limiter.Play -- 14package main 15 16import ( 17 "fmt" 18 "time" 19 20 "golang.org/x/time/rate" 21) 22 23func main() { 24 // Uses fmt, time and rate. 25 l := rate.NewLimiter(rate.Every(time.Second), 1) 26 fmt.Println(l) 27}