Skip to content

Commit 9ce051a

Browse files
committed
Update WSL to v1.2.5
* Support output comments for example functions
1 parent 8db28a6 commit 9ce051a

File tree

5 files changed

+25
-12
lines changed

5 files changed

+25
-12
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ go 1.12
44

55
require (
66
github.com/OpenPeeDeeP/depguard v1.0.1
7-
github.com/bombsimon/wsl v1.2.4
7+
github.com/bombsimon/wsl v1.2.5
88
github.com/fatih/color v1.7.0
99
github.com/go-critic/go-critic v0.3.5-0.20190904082202-d79a9f0c64db
1010
github.com/go-lintpack/lintpack v0.5.2

go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRF
1111
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6/go.mod h1:grANhF5doyWs3UAsr3K4I6qtAmlQcZDesFNEHPZAzj8=
1212
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
1313
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
14-
github.com/bombsimon/wsl v1.2.4 h1:QfZdYcCzHob9ZlHdC2rD+iZnhRVtncMebOifHhA3Wec=
15-
github.com/bombsimon/wsl v1.2.4/go.mod h1:43lEF/i0kpXbLCeDXL9LMT8c92HyBywXb0AsgMHYngM=
14+
github.com/bombsimon/wsl v1.2.5 h1:9gTOkIwVtoDZywvX802SDHokeX4kW1cKnV8ZTVAPkRs=
15+
github.com/bombsimon/wsl v1.2.5/go.mod h1:43lEF/i0kpXbLCeDXL9LMT8c92HyBywXb0AsgMHYngM=
1616
github.com/cespare/xxhash v1.1.0/go.mod h1:XrSqR1VqqWfGrhpAt58auRo0WTKS1nRRg3ghfAqPWnc=
1717
github.com/client9/misspell v0.3.4/go.mod h1:qj6jICC3Q7zFZvVWo7KLAzC3yx5G7kyvSDkc90ppPyw=
1818
github.com/coreos/bbolt v1.3.2/go.mod h1:iRUV2dpdMOn7Bo10OQBFzIJO9kkE559Wcmn+qkEiiKk=

test/testdata/wsl.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,3 +164,11 @@ func allowTrailing(i int) {
164164
fmt.Println("three")
165165
}
166166
}
167+
168+
// ExampleSomeOutput simulates an example function.
169+
func ExampleSomeOutput() {
170+
fmt.Println("Hello, world")
171+
172+
// Output:
173+
// Hello, world
174+
}

vendor/github.com/bombsimon/wsl/wsl.go

Lines changed: 13 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vendor/modules.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ github.com/BurntSushi/toml
44
github.com/OpenPeeDeeP/depguard
55
# github.com/StackExchange/wmi v0.0.0-20180116203802-5d049714c4a6
66
github.com/StackExchange/wmi
7-
# github.com/bombsimon/wsl v1.2.4
7+
# github.com/bombsimon/wsl v1.2.5
88
github.com/bombsimon/wsl
99
# github.com/davecgh/go-spew v1.1.1
1010
github.com/davecgh/go-spew/spew

0 commit comments

Comments
 (0)