initial commit

This commit is contained in:
Jose Garcia 2021-06-23 20:00:24 -04:00
commit 8eba57a9ed
7 changed files with 386 additions and 0 deletions

23
example/main.go Normal file
View file

@ -0,0 +1,23 @@
package main
import (
"context"
"fmt"
"log"
"github.com/josebalius/go-liveshare"
)
func main() {
liveShare, err := liveshare.New(
liveshare.WithWorkspaceID("..."),
liveshare.WithToken("..."),
)
if err != nil {
log.Fatal(fmt.Errorf("error creating liveshare: %v", err))
}
if err := liveShare.Connect(context.Background()); err != nil {
log.Fatal(fmt.Errorf("error connecting to liveshare: %v", err))
}
}