initial commit
This commit is contained in:
commit
8eba57a9ed
7 changed files with 386 additions and 0 deletions
23
example/main.go
Normal file
23
example/main.go
Normal 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))
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue