Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 299 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 299 Bytes

go-graphiql

Go http handler to serve the graphiql in-browser IDE.

package main

import (
	"net/http"

	"github.com/mnmtanish/go-graphiql"
)

func main() {
	http.HandleFunc("/graphql", myGraphQLHandler)
	http.HandleFunc("/", graphiql.ServeGraphiQL)
	http.ListenAndServe(":9001", nil)
}