Skip to content

Commit cfebe75

Browse files
authored
Docs: simplified example
1 parent 7a20a97 commit cfebe75

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

README.md

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,24 +18,20 @@ Specification: https://wiki.openstreetmap.org/wiki/Shortlink
1818
```go
1919
package main
2020

21-
import (
22-
"fmt"
23-
24-
"github.com/stefanb/osmshortlink-go"
25-
)
21+
import "github.com/stefanb/osmshortlink-go"
2622

2723
func main() {
2824
shortlink, err := osmshortlink.Create(46.05141, 14.50604, 17)
2925
if err != nil {
3026
panic(err)
3127
}
32-
fmt.Println(shortlink)
28+
print(shortlink)
3329
}
3430
```
3531

3632
Prints: [`https://osm.org/go/0Ik3VNr_A-?m`](https://osm.org/go/0Ik3VNr_A-?m)
3733

38-
[Try it in Go playground](https://go.dev/play/p/xFQrtmFwMPa)
34+
[Try it in Go playground](https://go.dev/play/p/mObcbRyGU9E)
3935

4036
### Command-line tool
4137

0 commit comments

Comments
 (0)