Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
30 lines (21 sloc) 424 Bytes
package main
import (
"fmt"
si "github.com/aanupam23/go-stellar-ipfs"
)
func main() {
ss := si.NewStellarShell("localhost:5001", "public")
// Adding file to IPFS
thash, err := ss.AddIpfsString("Meow")
if err != nil {
error := ss.IsListening()
panic(error)
}
fmt.Println(thash)
output, err := ss.IpfsDataString(thash)
if err != nil {
error := ss.IsListening()
panic(error)
}
fmt.Println(output)
}
You can’t perform that action at this time.