Golang Packages: add internal packages

This commit is contained in:
xiegang committed 2022-06-10 14:48:01 +08:00
1 parent d17286b5ca
commit fe635f2007
1 file changed
+5
+5
View File
@@ -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