modulepackage
0.0.0-20200218083740-ba6c48f29f4d
Repository: https://github.com/rocketlaunchr/https-go.git
Documentation: pkg.go.dev
# README
https-go 
Quickly create a self-signed Go HTTPS server.
⭐ the project to show your appreciation.
Example
package main
import (
"log"
"net/http"
"github.com/rocketlaunchr/https-go"
)
func main() {
http.HandleFunc("/", func(w http.ResponseWriter, r *http.Request) { w.WriteHeader(http.StatusNoContent) })
httpServer, _ := https.Server("8080", https.GenerateOptions{Host: "thecucumber.app"})
log.Fatal(httpServer.ListenAndServeTLS("", ""))
}
Extra Notes
Just remember to change the url from http to https. Also configure your http client code/application to allow self-signed certificates otherwise they will spit out an error.
Other useful packages
- dataframe-go - Statistics and data manipulation
- dbq - Zero boilerplate database operations for Go
- electron-alert - SweetAlert2 for Electron Applications
- igo - A Go transpiler with cool new syntax such as fordefer (defer for for-loops)
- mysql-go - Properly cancel slow MySQL queries
- react - Build front end applications using Go
- remember-go - Cache slow database queries
# Functions
GenerateKeys will return the public and private keys.
Server will create a self-signed https server.
# Structs
GenerateOptions is used to configure the keys.