Documentation
¶
Index ¶
- func RenderEntry(_w _io.Writer, word repository.Word, otherRootWords []repository.Word) (err error)
- func RenderMain(_w _io.Writer) (err error)
- func RenderNotFound(_w _io.Writer, query string) (err error)
- func RenderTranslationSearch(_w _io.Writer, query string, results []repository.TranslatedWord) (err error)
- type Handler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RenderEntry ¶
func RenderEntry(_w _io.Writer, word repository.Word, otherRootWords []repository.Word) (err error)
func RenderMain ¶
func RenderTranslationSearch ¶
func RenderTranslationSearch(_w _io.Writer, query string, results []repository.TranslatedWord) (err error)
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func NewHandler(repo repository.Repository) *Handler
func (*Handler) RegisterRoutes ¶
func (h *Handler) RegisterRoutes(r *gin.RouterGroup)
Click to show internal directories.
Click to hide internal directories.