mirror of
https://github.com/Fechin/reference.git
synced 2026-11-21 05:24:10 +03:00
Merge pull request #234 from xiegang/main
Golang Packages: add internal packages
This commit is contained in:
1 file changed
+5
@@ -736,8 +736,13 @@ r.Intn()
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
// An internal package may be imported only by another package
|
||||
// that is inside the tree rooted at the parent of the internal directory
|
||||
package internal
|
||||
```
|
||||
|
||||
See: [Internal packages](https://go.dev/doc/go1.4#internalpackages)
|
||||
|
||||
### Exporting names
|
||||
|
||||
|
||||
Reference in new issue
Block a user