Skip to content

anaskhan96/go-vapidkeys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-vapidkeys

Build Status GoDoc Go Report Card

A small package in Go to generate VAPID public and private keys required for sending web push notifications (HTTP/2 Server Push).

Installation

go get github.com/anaskhan96/go-vapidkeys

Run go test in the package's directory to run tests.

Usage

package main

import (
	"fmt"
	"github.com/anaskhan96/go-vapidkeys"
	"log"
)

func main() {
	privateKey, publicKey, err := vapidkeys.Generate()
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println("Vapid Private Key:", privateKey)
	fmt.Println("Vapid Public Key:", publicKey)
}

About

Go Package to generate VAPID public and private keys

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages