Skip to content
This repository was archived by the owner on Jan 4, 2025. It is now read-only.

Latest commit

 

History

History
48 lines (36 loc) · 1.27 KB

README.md

File metadata and controls

48 lines (36 loc) · 1.27 KB

go-vimeworld is a client for VimeWorld written in go.

Go Reference tests x codecov Go Report Card


Installation

go get github.com/EpicStep/go-vimeworld

Example

package main

import (
	"context"
	"fmt"

	"github.com/EpicStep/go-vimeworld/vimeworld"
)

func main() {
	c, err := vimeworld.NewClient(vimeworld.Options{})
	if err != nil {
		panic(err)
	}

	user, err := c.GetUsersByNames(context.Background(), "EpicStep")
	if err != nil {
		panic(err)
	}

	if len(user) == 0 {
		panic("user not found")
	}

	fmt.Println(user[0])
}

License

MIT