I โค Open Source. I love Vim and Go.
- Long-time Golang user&contributor
- Google Dev Expert for Go
- Author of many Go tools
- Vim plugin author (emmet-vim, vim-gist, vim-lsp-settings, etc)
- Windows hacker
I'm looking for GitHub sponsors.
A cli application for nostr
License: MIT License
I โค Open Source. I love Vim and Go.
I'm looking for GitHub sponsors.
$ go version
go version go1.15.15 linux/arm64
$ uname -a
Linux 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux
$ go install github.com/mattn/algia@latest
package github.com/mattn/algia@latest: cannot use path@version syntax in GOPATH mode
Minimal configuration. Need to be at ~/.config/algia/config.json
On macOS this actually defaults to $HOME/Library/Application Support/algia/config.json
as per os.UserConfigDir, which is not ideal.
I think the most straightforward way to get macOS clients to use the ~/.config
dir is to replace os.UserConfigDir
with a 3rd party package like github.com/mitchellh/go-homedir
. If this is an acceptable solution let me know - I'd be happy to submit a pull request.
Cheers,
I've cloned the repo, run make
, copied the config to the proper location and updated it for use in my project.
However, every algia command returns invalid separator index 66
Any ideas?
In doPost function, ev.Tags may need to be initialized with nostr.Tags{ }.
If no tags were added to the event object, the ev.Tags was nil.
I observed many of relays reject event objects when it was nil.
To resolve this, initializing ev.Tags with nostr.Tags{ } (an empty array of array) worked for me.
I would suggest to add this line,
ev.Tags = nostr.Tags{ }
before the line 260 in "timeline.go."
/*Line 260: func doPost in timeline.go*/
for i, u := range cCtx.StringSlice("u") {
ev.Content = fmt.Sprintf("#[%d] ", i) + ev.Content
if pp := sdk.InputToProfile(u); pp == nil {
return fmt.Errorf("failed to parse pubkey from '%s'", u)
} else {
u = pp.PublicKey
}
ev.Tags = ev.Tags.AppendUnique(nostr.Tag{"p", u})
}
/*the function goes on...*/
If ev.Tags is nil, the corresponding part in the parsed JSON will be nil.
If initialized with nostr.Tags{}, it will be "[]".
I am trying to use your client, however it says "string not all lowercase or all uppercase".
I am typing "algia timeline".
Can you provide some simple example in the readme?
Thanks!
When running algia tl
for the first time, the file config.json
fills with invalid list of following accounts.
License is MIT, but it would be great to have an explicit file (as is standard) so GitHub and other tools can pick up on it.
https://github.com/mattn/algia#license
Thank you.
Edit: I mean like this: https://docs.github.com/en/communities/setting-up-your-project-for-healthy-contributions/adding-a-license-to-a-repository
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.