摘要:
一,go代码: 目录结构: routes package routes import ( "github.com/gin-gonic/gin" "mediabank/controller" ) func Routes() *gin.Engine { router := gin.Default() / 阅读全文
posted @ 2025-09-20 09:46
刘宏缔的架构森林
阅读(14)
评论(0)
推荐(0)
摘要:
一,目录结构 二,代码 controller package controller import ( "github.com/gin-gonic/gin" "net/http" ) type MediaController struct{} func NewMediaController() Med 阅读全文
posted @ 2025-09-20 09:46
刘宏缔的架构森林
阅读(7)
评论(0)
推荐(0)
摘要:
一,从官网下载 官方站: https://golang.google.cn/dl/ 从命令行下载: $ wget https://golang.google.cn/dl/go1.25.1.linux-amd64.tar.gz 二,安装 解压: $ tar -zxvf go1.25.1.linux-a 阅读全文
posted @ 2025-09-20 09:46
刘宏缔的架构森林
阅读(97)
评论(0)
推荐(0)
摘要:
一,创建项目 $ mkdir mediabank $ cd mediabank/ $ go mod init mediabank go: creating new go.mod: module mediabank $ go get github.com/gin-gonic/gin@latest 二, 阅读全文
posted @ 2025-09-20 09:46
刘宏缔的架构森林
阅读(11)
评论(0)
推荐(0)
浙公网安备 33010602011771号