Skip to content

Commit bb9107d

Browse files
committed
go-imports: Adding README
Signed-off-by: Lucas Fontes <lucas@cosmonic.com>
1 parent b1d3439 commit bb9107d

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

go-imports/README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# go.bytecodealliance.org Vanity URLs
2+
3+
This directory hosts the configuration for Go vanity URLs under `go.bytecodealliance.org` domain.
4+
5+
More information about vanity URLs can be found in the [Go documentation](https://golang.org/cmd/go/#hdr-Remote_import_paths).
6+
7+
## Adding a new vanity URL
8+
9+
If you want to create a vanity URL `go.bytecodealliance.org/foo` pointing to `github.com/bytecodealliance/go-foo`:
10+
11+
- Create directory `foo`
12+
- Create file `foo/index.html` with the following content:
13+
14+
```html
15+
<html>
16+
<head>
17+
<meta name="go-import" content="go.bytecodealliance.org/foo git https://github.com/bytecodealliance/go-foo" />
18+
</head>
19+
</html>
20+
```
21+
22+
NOTE: Vanity URLs must be unique and not shadow existing package names in this repository. For ex: Creating a vanity URL `go.bytecodealliance.org/cm` would shadow the `cm` package in this repository.

0 commit comments

Comments
 (0)