Skip to content

Commit 68181ff

Browse files
committed
Add Result in examples
1 parent c79deb2 commit 68181ff

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

examples/basic/urls/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
このディレクトリには以下のサンプルがあります。
44

5-
| file | example name | note |
6-
|-------------|---------------|--------------------------------------------|
7-
| joinpath.go | url\_joinpath | Go1.19 から追加された url.JoinPath() についてのサンプルです. |
5+
| file | example name | note |
6+
| ----------- | ------------ | ------------------------------------------------------------ |
7+
| joinpath.go | url_joinpath | Go1.19 から追加された url.JoinPath() についてのサンプルです. |
88

examples/basic/urls/joinpath.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,20 @@ func JoinPath() error {
2424
output.Stdoutl("[url.JoinPath]", p2)
2525

2626
return nil
27+
28+
/*
29+
$ task
30+
task: Task "build" is up to date
31+
task: [run] ./try-golang -onetime
32+
33+
ENTER EXAMPLE NAME: url_joinpath
34+
35+
[Name] "url_joinpath"
36+
[url.JoinPath] base/child1/child3
37+
[url.JoinPath] https://devlights.hatenablog.com/entry/2022/08/24/073000
38+
39+
40+
[Elapsed] 40.02µs
41+
*/
42+
2743
}

0 commit comments

Comments
 (0)