Documentation ¶ Index ¶ type Route type Router Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Route ¶ type Route struct { Name string // человекочитаемое название Method string // тип http метода Pattern string // путь к эндпоинту Handler http.HandlerFunc // исполняемая функция QueryPairs []string } Route определяет один маршрут type Router ¶ type Router interface { Routes() []Route // возвращает коллекцию маршрутов } Router интерфейс для сервисов, с помощью которых http сервер реализует определенный Api Source Files ¶ View all Source files api.go Directories ¶ Show internal Expand all Path Synopsis chiserver gorillaserver Click to show internal directories. Click to hide internal directories.