Documentation ¶
Index ¶
Constants ¶
View Source
const ValidBearer = "123456"
ValidBearer is a hardcoded bearer token for demonstration purposes.
Variables ¶
This section is empty.
Functions ¶
func HelloName ¶
func HelloName(w http.ResponseWriter, r *http.Request)
HelloName returns a personalized JSON message
func HelloWorld ¶
func HelloWorld(w http.ResponseWriter, r *http.Request)
HelloWorld returns a basic "Hello World!" message
Types ¶
type HelloResponse ¶
type HelloResponse struct {
Message string `json:"message"`
}
HelloResponse is the JSON representation for a customized message
Click to show internal directories.
Click to hide internal directories.