Skip to content

pushyzheng/gobark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gobark

Quick start

import (
	"fmt"
	bark "github.com/pushyzheng/gobark"
)

func main() {
	// 1. create bark client
	client := bark.BarkClient{Domain: bark.DefaultDomain}
    
	// 2. build options
	options := bark.NewPushOptions("Hello", "To be or not to be")
	options.SetReceiver("your key")
	options.SetLevel(bark.Passive)
	
	// 3. execute push
	failed, err := client.Push(options)
	if err != nil {
		panic(err)
	}
	fmt.Println("failed:", failed)
}

About

The client of bark

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages