blob: 9baf373cd8a5042fe774619e9c246f1740f90d53 [file] [log] [blame]
-- .Play --
package main
import (
"fmt"
)
func main() {
fmt.Println("Hello, world!")
}
-- .Output --
Hello, world!
-- Limiter.Play --
package main
import (
"fmt"
tm "time"
r "golang.org/x/time/rate"
)
func main() {
// Uses fmt, time and rate.
l := r.NewLimiter(r.Every(tm.Second), 1)
fmt.Println(l)
}