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.
NewChain helper function to create the chain 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 metadatapackage 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)
}
git pull origin mastergit merge [your branch name] and resolve any conflictsgit 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