Skip to content

afeiship/go-bark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-bark

Bark sdk for golang.

installation

go get -u github.com/afeiship/go-bark

usage

package main

import "github.com/afeiship/go-bark"
import "fmt"

func main() {
	// short message
	bark.Msg("Hello, world!")
	
	// long message
	bark.Msg("Warning", "This is a warning message.")
	
	// more options
	client := bark.NewClient()
	res, _ := client.Notify(
		&bark.Message{
			Title: "Hello",
			Body:  "This is a test message from go-bark",
		},
	)
	
	// check response
	fmt.Println("Response: ", res)
}

About

Bark sdk for golang.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages