Skip to content

Commit 24483c0

Browse files
committed
Add part about using an imported package
1 parent aa427a4 commit 24483c0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

concepts/packages/introduction.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,10 @@ package greeting
1818
import "fmt"
1919
```
2020

21+
An imported package is then addressed with the package name:
22+
23+
```go
24+
world := "World"
25+
fmt.Sprintf("Hello %s", world)
26+
```
27+

0 commit comments

Comments
 (0)