Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CalcResult ¶
type CalcResult struct { Action CalcOperation `json:"action"` Answer float64 `json:"answer"` X float64 `json:"x"` Y float64 `json:"y"` Cached bool `json:"cached"` }
Result of calculation
type CalcServer ¶
type CalcServer struct {
// contains filtered or unexported fields
}
CalcServer contains logic for the server
func (*CalcServer) ServeHTTP ¶
func (srv *CalcServer) ServeHTTP(w http.ResponseWriter, req *http.Request)
Handler interface for HTTP server
Click to show internal directories.
Click to hide internal directories.