18 lines
514 B
Go
18 lines
514 B
Go
package main
|
|
|
|
// Message represents response with information about results of something
|
|
type Message struct {
|
|
// Message with different kind of information. Usually it's error message generated by dependencies or stdlib or simply ok.
|
|
// Example: ok
|
|
// Required: false
|
|
Message string `json:"message,omitempty"`
|
|
// If there are any errors all of them are listed here.
|
|
// Required: false
|
|
Errors []string `json:"errors,omitempty"`
|
|
}
|
|
|
|
// data passed into the template
|
|
type templateData struct {
|
|
Token string
|
|
}
|