New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

github.com/qianzy96/ant-forum-admin

Package Overview
Dependencies
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/qianzy96/ant-forum-admin

Source
Go Modules
Version
v0.0.0-20191122093835-345fdb1e4fbe
Version published
Created
Source

start

启动

go run main.go

生成api文档

swag init

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

使用air启动

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

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

  • 启动

根目录下

air

遇到的一些问题

  • 如何方式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