Why Nostr? What is Njump?
2024-07-26 16:26:40

mleku on Nostr: i remembered there was some funny thing you could do to get "vanity" import paths ...

i remembered there was some funny thing you could do to get "vanity" import paths with golang

https://sagikazarmark.hu/blog/vanity-import-paths-in-go/

it's an interesting trick, just an index.html static file served up at the specified path in your Go code (`go.mod` and in `import` blocks) like this:

```
<meta name="go-import" content="emperror.dev/errors git https://github.com/emperror/errors">;
```

just by the by as i'm figuring out how to make use of this, because pig ugly `github.com/mleku/...` imports annoy the piss out of me and i want to have nice neat ones with subdomains and shit

so now, anyway , i revised my year-rented VPS with `mleku.net` and `mleku.dev` pointed at it so now my nip-05 is `mleku.net` and that will be my "social DNS name" and `mleku.dev` will have a bunch of subdomains, like `ec.mleku.dev` will be my btcec fork and `replicatr.mleku.dev` will become my relay repo import address...

still got some ways to go to getting replicatr working as it was but with the new zero alloc/zero copy nostr codecs, pretty close, but a lot of fiddling, but i want to have my paths all neat now, so i'm diverting briefly to adding a new feature to my reverse proxy that lets you automatically create a little html page that will serve up that redirection at a given sub/domain and get my stuff on a nicer thing

my VPS is more than capable of handling a tiny bit of work like this, it's very minimal, 512mb memory, tiny disk, etc, 9tb monthly traffic, and it's perfect for this, might even prompt me to renew my domains and drop another year's rental on the VPS so this stays stable
Author Public Key
npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku