Skip to content

Commit 50d5f42

Browse files
committed
Update
1 parent 985c3ce commit 50d5f42

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

examples/basic/strs/trimspace.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,20 @@ func TrimSpace() error {
2626
output.Stdoutf("[noSpace ]", "%q\n", strings.TrimSpace(noSpace))
2727

2828
return nil
29+
30+
/*
31+
$ task
32+
task: [build] go build .
33+
task: [run] ./try-golang -onetime
34+
35+
ENTER EXAMPLE NAME: string_trim_space
36+
37+
[Name] "string_trim_space"
38+
[withSpace] "hello world"
39+
[noSpace ] "hello world"
40+
41+
42+
[Elapsed] 24.94µs
43+
*/
44+
2945
}

0 commit comments

Comments
 (0)