mirror of
https://github.com/Fechin/reference.git
synced 2026-11-20 21:23:11 +03:00
Golang Packages: add internal packages
This commit is contained in:
1 parent
d17286b5ca
commit
fe635f2007
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