Elegant GraphiQL server handler for Go.
package main
import (
"github.com/poohvpn/giql"
"net/http"
)
func main() {
http.HandleFunc("/", giql.New())
// or http.HandleFunc("/", giql.New("http://example.com/graphql"))
http.ListenAndServe(":8080", nil)
}
Apache License 2.0
Copyright 2021 PoohVPN