Discover Packages
github.com/Bo0mer/assistant
server
package
Version:
v0.0.0-...-86f5a2c
Opens a new window with list of versions in this module.
Published: Jan 30, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package server implements an assistant server.
The package helps people to get information about the current weather in a
specified location.
Server is the main type that implements the http.Handler interface.
NewServer returns a new initialized server.
ServeHTTP handles HTTP reqeusts by assisting the remote user.
type Weather struct {
Description string `json:"description"`
TempC int `json:"temp_c"`
}
Weather describes the weather for a specific place.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.