The highest tagged major version is
v3 .
Discover Packages
codeberg.org/vlbeaudoin/voki
response
package
Version:
v1.1.0
Opens a new window with list of versions in this module.
Published: Sep 18, 2023
License: GPL-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package response provides the Responder interface for
(*voki.Voki).CallResponder
Custom response types should be declared for specific API endpoints.
type Responder interface {
Respond() Responder
}
Responder is used to define objects that can be unmarshalled into by
(*voki.Voki).CallResponder.
type Response struct {
StatusCode int
Message string
}
Response declares fields used by most of my API servers.
They will probably not apply to your environment, if so declare structs that
implement the Responder interface, so that you can use them with
(*voki.Voki).CallResponder.
Respond implements Responder interface for Response
Source Files
¶
Click to show internal directories.
Click to hide internal directories.