gourouting / giligili Goto Github PK
View Code? Open in Web Editor NEWgin+gorm开发的视频网站示例
Home Page: https://www.gourouting.com/
gin+gorm开发的视频网站示例
Home Page: https://www.gourouting.com/
.env.example
试了swag init, 生成的目录及文件跟giligili下的swagger目录不太一样, 能否添加swagger初始化的步骤?
添加新的api后, 如果更新swagger?
// CreateVideo 视频投稿
func CreateVideo(c *gin.Context) {
service := service.CreateVideoService{}
// ShouldBind ---> ShouldBindJSON
if err := c.ShouldBind(&service); err == nil {
res := service.Create()
c.JSON(200, res)
} else {
c.JSON(200, ErrorResponse(err))
}
}
go run main.go 运行时出现panic: unknown time zone Local",是我哪里配置有问题吗
:(
dockfile文件:
FROM golang as build
ENV GOPROXY=https://goproxy.io
ADD . /usr/local/go/src/giligili
WORKDIR /usr/local/go/src/giligili
RUN export GOPROXY=https://mirrors.aliyun.com/goproxy/
RUN export GO111MODULE=on
RUN go mod tidy
RUN go mod vendor
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o api_server
结果:go: inconsistent vendoring in /usr/local/go/src/giligili:
go.mod requires giligili but vendor/modules.txt does not include it.
run 'go mod tidy; go mod vendor' to sync
求大佬实现个评论功能或者留言板之类的
运行的时候出现这个问题怎么解决呀
部署测试发下至少有一下配置没有写进readme
OSS_ACCESS_KEY_ID="blablabla"
OSS_ACCESS_KEY_SECRET="blablabla"
OSS_END_POINT="blablabla"
OSS_BUCKET="blablabla"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.