上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 55 下一页

2020年10月22日

Gin 项目运行基本步骤

摘要: 1.编译并调试 go build &&./ginEssential 2.运行命令 go run main.go routes.go 阅读全文

posted @ 2020-10-22 11:22 星河赵 阅读(1330) 评论(0) 推荐(0) 编辑

2020年10月21日

Gin 框架mysql的连接搭建

摘要: Gin框架中mysql的连接 安装驱动 go get github.com/go-sql-driver/mysql 安装Gorm go get -u github.com/jinzhu/gorm package main import ( "fmt" "github.com/gin-gonic/gi 阅读全文

posted @ 2020-10-21 18:58 星河赵 阅读(3784) 评论(0) 推荐(0) 编辑

2020年10月16日

Gin 框架的使用

摘要: 1.进入gopath目录下,建立gin_test_project # 进入gopath并建立gin_test_projectcd /Users/edz/go/src/gin_test_project go mod init #初始化go mod # 下载gin包 go get -v github.c 阅读全文

posted @ 2020-10-16 12:22 星河赵 阅读(539) 评论(0) 推荐(0) 编辑

2020年10月15日

Beego model 增删改查

摘要: 插入 o := orm.NewOrm() user := UserInfo{Username: "zhangsan1", Password: "123456"} id, err := o.Insert(&user) c.Ctx.WriteString(fmt.Sprintf("操作数据库id=%d 阅读全文

posted @ 2020-10-15 20:10 星河赵 阅读(241) 评论(0) 推荐(0) 编辑

Beego 搭建

摘要: 1.先安装环境 #beego 是一个快速开发 Go 应用的 HTTP 框架,他可以用来快速开发 API、Web 及后端服务等各种应用,是一个 RESTful 的框架,主要设计灵感来源于 tornado、sinatra 和 flask 这三个框架,但是结合了 Go 本身的一些特性(interface、 阅读全文

posted @ 2020-10-15 11:51 星河赵 阅读(262) 评论(0) 推荐(0) 编辑

Go 如何快速解决依赖管理问题

摘要: 背景 goproxy.io 是全球最早的 Go modules 镜像代理服务之一, 采用 CDN 加速服务为开发者提供依赖下载, 该服务由一批热爱开源, 热爱 Go 语言的年轻人开发维护。从 Go 1.11 开始 Go 语言开始支持 Go modules 来解决大家长久以来诟病的依赖管理问题,目前 阅读全文

posted @ 2020-10-15 10:55 星河赵 阅读(734) 评论(0) 推荐(0) 编辑

2020年10月12日

Go go golang 语法环境基础

摘要: go get 超时问题的解决方案 执行 go env 查看环境地址 # 默认地址 GOPROXY="https://proxy.golang.org,direct" 推荐使用七牛云做代理 终端执行export 即可,关闭终端后失效 export GOPROXY=https://goproxy.cn 阅读全文

posted @ 2020-10-12 16:58 星河赵 阅读(117) 评论(0) 推荐(0) 编辑

2020年10月9日

使用vue控制元素显示隐藏

摘要: HTML代码: <div title="意向价格" v-if="showPrise"></div> <div title="意向租金" v-show="showRentPrise"></div> JS代码: new Vue({ el: '#app', data: { showPrise:false, 阅读全文

posted @ 2020-10-09 11:44 星河赵 阅读(16156) 评论(0) 推荐(0) 编辑

Vue 刷新页面方式 和页面跳转的方式

摘要: 一、页面刷新方式 1、最直接整个页面重新刷新: location. reload() this.$router.go(0) 这两种都可以刷新当前页面的,缺点就是相当于按ctrl+F5 强制刷新那种,整个页面重新加载,会出现一个瞬间的空白页面,体验不好 2、新建一个空白页面supplierAllBac 阅读全文

posted @ 2020-10-09 11:03 星河赵 阅读(4977) 评论(0) 推荐(0) 编辑

2020年9月28日

如何让nginx 显示文件夹目录

摘要: nginx配置如下: autoindex on; 一定要打开 server { listen 5252; client_max_body_size 20m; access_log /opt/nginx_logs/console/access.log main; error_log /opt/ngin 阅读全文

posted @ 2020-09-28 12:02 星河赵 阅读(1407) 评论(0) 推荐(0) 编辑

上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 55 下一页

导航