Giant blob of minor changes
[dotfiles/.git] / .config / coc / extensions / coc-go-data / tools / pkg / mod / golang.org / x / tools@v0.0.0-20201028153306-37f0764111ff / refactor / eg / testdata / B1.golden
1 // +build ignore
2
3 package B1
4
5 import "time"
6
7 var startup = time.Now()
8
9 func example() time.Duration {
10         before := time.Now()
11         time.Sleep(1)
12         return time.Since(before)
13 }
14
15 func msSinceStartup() int64 {
16         return int64(time.Since(startup) / time.Millisecond)
17 }