文件不存在, 无法加载环境变量

This commit is contained in:
jinzhu
2022-03-29 16:31:08 +08:00
parent f9e9d4cdeb
commit cb4dea930c
2 changed files with 1 additions and 18 deletions

View File

@@ -1,17 +0,0 @@
GOBIN := $(shell go env GOBIN)
ATDIR := $(shell pwd)
# 只维护 protoc
protoc:
go run main.go make:protoc
make-route:
go run main.go make:route
make-bean:
go run main.go make:bean
# 调试启动
dev:protoc make-route make-bean

View File

@@ -34,7 +34,7 @@ connections:
````shell
user@macOs path $ toolset make:orm -config=./config/database.yaml -out=your_path
````
使用, 基本上和php laravel 很类似
使用, 基本上和`php` `laravel` 很类似, 如果不使用整套的`home`代码, 应该在生成目录下编写新的`NewOrmUsers`函数
````go
orm := NewOrmUsers()
user, has := orm.WhereId(1).First()