types/README.md

41 lines
664 B
Markdown
Raw Permalink Normal View History

2017-12-14 20:39:53 +01:00
# LBRY Types
Cross-language definitions for standard LBRY types.
## Using LBRY types in your code
### Go
2017-12-15 16:23:22 +01:00
```go
2017-12-14 20:39:53 +01:00
package main
import pb "github.com/lbryio/types/go"
import "fmt"
func main() {
title := "Coherence"
metadata := pb.Metadata{Title:&title}
fmt.Printf("Let's watch %s on LBRY!\n", metadata.GetTitle())
}
```
### Python
todo
### Javascript
todo
## Compiling types
You only need to do this if you're modifying the types themselves.
- Download [the protoc binary](https://github.com/google/protobuf/releases) and put it in your path. Make sure you get the one starting with `protoc`, not `protobuf`.
- `./build.sh`
## License
MIT