summaryrefslogtreecommitdiffstats
path: root/src/go/doc/testdata/examples/import_groups.golden
blob: efe2cc1df5965bd8deb66dd4b746bebf1266af75 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
-- .Play --
package main

import (
	"fmt"
)

func main() {
	fmt.Println("Hello, world!")
}
-- .Output --
Hello, world!
-- Limiter.Play --
package main

import (
	"fmt"
	"time"

	"golang.org/x/time/rate"
)

func main() {
	// Uses fmt, time and rate.
	l := rate.NewLimiter(rate.Every(time.Second), 1)
	fmt.Println(l)
}