15 lines
291 B
Go
15 lines
291 B
Go
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
|
|
}
|
|
}
|