Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RespondJson ¶
func RespondJson(w http.ResponseWriter, body any, statusCode int)
Write response to http.ResponseWriter
Types ¶
type AddVocabulary ¶
type AddVocabulary struct { Store *store.VocabularyStore Validator *validator.Validate }
func (*AddVocabulary) ServeHTTP ¶
func (av *AddVocabulary) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ErrorResponse ¶
type ErrorResponse struct {
Message string `json:"message"`
}
Click to show internal directories.
Click to hide internal directories.