mcl, docs: Use the less ambiguous form of the import

Update the style guide as well!
This commit is contained in:
James Shubin
2025-06-05 22:45:26 -04:00
parent e5ec13f592
commit 75bafa4fd3
11 changed files with 36 additions and 28 deletions

View File

@@ -256,6 +256,15 @@ like: `import "https://github.com/purpleidea/mgmt-banana/"` and namespace it as
`import "https://github.com/purpleidea/mgmt-banana/" as tomato` or something
similar.
### Imports
When importing "golang" modules such as "golang/strings" it's recommended to use
the `import "golang/strings" as golang_strings` format. This is to avoid
confusion with the normal core package you get from `import "strings"`.
In the long-term, we expect to remove the `"golang/"` namespace when our own
standard library is complete enough.
### Licensing
We believe that sharing code helps reduce unnecessary re-invention, so that we