add mastodon
This commit is contained in:
14
pwgen/vapid.go
Normal file
14
pwgen/vapid.go
Normal file
@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
webpush "github.com/SherClockHolmes/webpush-go"
|
||||
)
|
||||
|
||||
func main() {
|
||||
privateKey, publicKey, err := webpush.GenerateVAPIDKeys()
|
||||
print("vapidPrivateKey: ", privateKey, "\n")
|
||||
print("vapidPublicKey: ", publicKey, "\n")
|
||||
if err != nil {
|
||||
// TODO: Handle error
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user