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
Published at
2024-07-26 16:26:40Event JSON
{
"id": "c7ba1a0510a6fb36b2f817d3741b9e9983c2cac7e8fe35d9f8f8c8509ed34c90",
"pubkey": "4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f",
"created_at": 1722011200,
"kind": 1,
"tags": [
[
"client",
"Coracle",
"31990:97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322:1685968093690"
]
],
"content": "i remembered there was some funny thing you could do to get \"vanity\" import paths with golang\n\nhttps://sagikazarmark.hu/blog/vanity-import-paths-in-go/\n\nit'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:\n\n```\n\u003cmeta name=\"go-import\" content=\"emperror.dev/errors git https://github.com/emperror/errors\"\u003e\n```\n\njust 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\n\nso 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...\n\nstill 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\n\nmy 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",
"sig": "14c51b2774cd5dcaef93e09da0d33b4ddf2afc3940ba66f6f49a7b6461242d4604506fa08000f1c962e294ac8bca4723803f610983afcf5ed1bb8234262dad06"
}