https://github.com/rocketlaunchr/https-go
self signed https server for go
https://github.com/rocketlaunchr/https-go
Last synced: about 1 year ago
JSON representation
self signed https server for go
- Host: GitHub
- URL: https://github.com/rocketlaunchr/https-go
- Owner: rocketlaunchr
- License: mit
- Created: 2020-02-16T00:27:39.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-18T08:37:41.000Z (about 6 years ago)
- Last Synced: 2025-04-05T06:55:33.911Z (about 1 year ago)
- Language: Go
- Homepage:
- Size: 9.77 KB
- Stars: 19
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# https-go [](http://godoc.org/github.com/rocketlaunchr/https-go)
Quickly create a self-signed Go HTTPS server.
⭐ **the project to show your appreciation.**
## Example
```go
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](https://github.com/rocketlaunchr/dataframe-go) - Statistics and data manipulation
- [dbq](https://github.com/rocketlaunchr/dbq) - Zero boilerplate database operations for Go
- [electron-alert](https://github.com/rocketlaunchr/electron-alert) - SweetAlert2 for Electron Applications
- [igo](https://github.com/rocketlaunchr/igo) - A Go transpiler with cool new syntax such as fordefer (defer for for-loops)
- [mysql-go](https://github.com/rocketlaunchr/mysql-go) - Properly cancel slow MySQL queries
- [react](https://github.com/rocketlaunchr/react) - Build front end applications using Go
- [remember-go](https://github.com/rocketlaunchr/remember-go) - Cache slow database queries