【文件属性】:
文件名称:simple-go-line-notify:简单的golang行通知
文件大小:8KB
文件格式:ZIP
更新时间:2021-05-22 05:47:30
Go
简单的golang行通知
安装
go get -u github.com/juunini/simple-go-line-notify
用法
package main
import "github.com/juunini/simple-go-line-notify/notify"
func main () {
accessToken := "29jWoO****p70eK3AKA********ooHfusvDP6***ZmR"
message := "hello, world!"
if err := notify . SendText ( accessToken , message ); err != nil {
panic ( err )
}
}
发送带有在线图像的通知
accessToken := "your-access-token
【文件预览】:
simple-go-line-notify-master
----.travis.yml(25B)
----LICENSE(1KB)
----notify()
--------send_image.go(463B)
--------send_text.go(353B)
--------doc.go(201B)
--------send_sticker_test.go(641B)
--------send_text_test.go(1KB)
--------send_local_image_test.go(662B)
--------send_image_test.go(677B)
--------send_local_image.go(1KB)
--------send_sticker.go(618B)
--------send.go(946B)
----.gitignore(59B)
----README.md(2KB)
----go.mod(57B)