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 tm "time" 19 20 r "golang.org/x/time/rate" 21) 22 23func main() { 24 // Uses fmt, time and rate. 25 l := r.NewLimiter(r.Every(tm.Second), 1) 26 fmt.Println(l) 27}