athena_school/main.go

16 lines
364 B
Go
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

package main
import (
"github.com/gin-gonic/gin"
)
func main() {
// Создаем новый экземпляр Gin
r := gin.Default()
// Настройка конечных точек
SetupRoutes(r)
// Запуск сервера (для запуска на ХОСТЕ ВМЕСТО localhost вставить IP сервера)
r.Run("localhost:80")
}