This directory hosts the configuration for Go module import paths under the go.bytecodealliance.org
domain. Each unique Go module (with a separate go.mod
file) must have a corresponding directory and index.html
file linking to this repository (or another respository, see below).
Packages within a named module, e.g. go.bytecodealliance.org/cm
will automatically be found.
To create a new Go module go.bytecodealliance.org/gopher
in this repository:
-
Create a new
gopher
directory in the root of this repository. -
In the
gopher
directory, rungo mod init go.bytecodealliance.org/gopher
. -
Create a new
docs/gopher
directory. -
Create a file
docs/gopher/index.html
with the following content:<html> <head> <meta name="go-import" content="go.bytecodealliance.org/gopher git https://github.com/bytecodealliance/go-modules" /> </head> </html>
-
Commit these changes and submit a Pull Request to this repository.
To create a new Go module go.bytecodealliance.org/wasmtime
in another repository (e.g. github.com/bytecodealliance/wasmtime-go).
-
In the
wasmtime-go
repository, rungo mod init go.bytecodealliance.org/wasmtime
. -
In this repository, create a new
docs/wasmtime
directory. -
Create a file
docs/wasmtime/index.html
with the following content:<html> <head> <meta name="go-import" content="go.bytecodealliance.org/wasmtime git https://github.com/bytecodealliance/wasmtime-go" /> </head> </html>
-
Commit these changes and submit a Pull Request to this repository.
Note: Go import paths must be unique and not shadow existing package names in this repository. For example: Creating an import path go.bytecodealliance.org/cm
would shadow package cm
in this repository.