Update for radicle
This commit is contained in:
parent
b2c1890de8
commit
e316928593
3 changed files with 11 additions and 3 deletions
|
@ -3,6 +3,8 @@ title: Custom import paths for Go modules
|
|||
published_on: '2025-02-13'
|
||||
---
|
||||
|
||||
*Updated 6/4/2025: Replaced the demo page.*
|
||||
|
||||
Go modules are great. URL-based imports, generally, are great. One of the things that makes them so great is that putting them on your own domain provides a good way of verifying ownership without going through a third party or a complicated review process. Plus, it looks cool.
|
||||
|
||||
So, how exactly does one accomplish such a thing? Well, it's [buried in the documentation](https://pkg.go.dev/cmd/go#hdr-Remote_import_paths), but it's really pretty simple. For each import path (e.g. `mysite.com/mypackage`), just put a page on your website with a `go-import` meta tag:
|
||||
|
@ -22,4 +24,4 @@ def go_modules = {
|
|||
}
|
||||
```
|
||||
|
||||
See [farthergate.com/stack](/stack) for the generated page. Look in the web inspector for the `meta` tag!
|
||||
See [farthergate.com/terminated](/terminated) for an example of a generated page. Look in the web inspector for the `meta` tag!
|
Loading…
Add table
Add a link
Reference in a new issue