Gopher drawing by Rene French
Finally got some functionality into the project and I hope to have a good chunk of free time soon to plug away at it more.
What's added in v0.1.0?
NewChain
helper function to create thechain
struct.GetAccountBandwidth
to return the "forum" bandwidth for an account.GetAccountCount
to return the total number of accounts on the network.GetAccountHistory
to return the account's historical data.GetAccountReputation
to return an account's current reputation.GetAccounts
for retrieving account metadata- Unit tests for the methods and functions mentioned above
Usage Example:
package main
import (
"fmt"
a "git.sr.ht/~jrswab/go-hive"
)
func main () {
c := a.NewClient()
accData, err := c.GetAccounts("jrswab")
if err != nil {
fmt.Println(err)
}
fmt.Println(data[0].Balance)
}
Contributing:
The preferred contribution approach:
- Fork
- Make a new branch
- Write code
- Run the unit tests
- Update and add tests as needed
- Commit to your branch.
- Switch back to master
git pull origin master
git merge [your branch name]
and resolve any conflicts- Use
git send-email --to="~jrswab/[email protected]" HEAD^
to create and send a patch.
Please use the Sourcehut Email Etiquettes when sending patches.
Using git send-email
will take care of most of the etiquette for you.
To learn how to send patches with git send-email
check out the tutorial at git-send-email.io
More Information:
- The project adheres to Semantic Versioning
- Licensed under the BSD 3-Clause License
- All development is on git.sr.ht/~jrswab/go-hive
- Sign up for the email list by sending an email to:
More more. Let's get everyone here