Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/qianzy96/ant-forum-admin

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/qianzy96/ant-forum-admin

  • v0.0.0-20191122093835-345fdb1e4fbe
  • Source
  • Go
  • Socket score

Version published
Created
Source

start

启动

go run main.go

生成api文档

swag init

访问 http://localhost:8080/swagger/index.html

使用air启动

  1. 安装air
go get -v github.com/cosmtrek/air/cmd/...
  1. 创建.air.conf文件

可以复制 https://github.com/cosmtrek/air 里面的air.conf.example内容

  1. 启动

根目录下

air

遇到的一些问题

  1. 如何方式gorm save的时候覆盖create_at 字段

db.Save(&user)会一同更新created_at。为了使created_at字段的值不被重置,可以使用Omit忽略字段。即:db.Omit("created_at").Save(&user)

FAQs

Package last updated on 22 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc