cloutcli

package module
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 21, 2021 License: MIT Imports: 6 Imported by: 0

README

cloutcli

library to make building things with bitclout easy

building the "clout" executable

There is no main.go file in the root directory.

Instead go into "cmd" directory and go build there.

This is done to keep the root directory having the package name "cloutcli".

Which allows other go programs to just import:

import "github.com/andrewarrow/cloutcli"

and then:

list := cloutcli.GlobalPosts()

for _, post := range list {
  fmt.Println(post.Body)
}

Example

github.com/andrewarrow/referential

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultPublicKey = "BC1YLgw3KMdQav8w5juVRc3Ko5gzNJ7NzBHE1FfyYWGwpBEQEmnKG2v"

Functions

func FollowingFeedPosts

func FollowingFeedPosts(username string) []lib.Post

func GlobalPosts

func GlobalPosts() []lib.Post

func ImportFromBadgerToSqlite added in v0.0.2

func ImportFromBadgerToSqlite(dir string) error

func PrintAllPostsFromBadger

func PrintAllPostsFromBadger(dir string) error

func QuerySqlitePosts added in v0.0.2

func QuerySqlitePosts(term string)

func UsernameToPub58

func UsernameToPub58(s string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL