Giter Club home page Giter Club logo

goctls's Introduction

goctls's People

Contributors

ctra-wang avatar gowa2017 avatar suyuan32 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

goctls's Issues

【建议贴】建议生成模板增加 .gitignore

建议生成模板增加 .gitignore
示例:

### Go template
# Binaries for programs and plugins
*.exe
*.exe~
*.dll
*.so
*.dylib

# Test binary, built with `go test -c`
*.test

# Output of the go coverage tool, specifically when used with LiteIDE
*.out

# Dependency directories (remove the comment below to include it)
# vendor/

*.gz
*.rar
*.tmp


生成go代码时报错

按教程走报错
syntax error: all.api 1:1 expected syntax statement, got <*ast.ImportLiteralStmt>

在每个api文件加上syntax = "v1"后报错 import circle not allowed

关于新建API时的一些建议

  1. 当使用 goctls api new -e proj 时,会生成 ent 目录下 Model 是 proj 的相关内容,实际上这可能并不符合实际的情况,项目名并不一定就和模型名或表名。因此默认应该只提供基础的支持,不生成默认的一个schema及相关代码。
  2. 使用 goctls api ent 使用时,命令行显示可以不需要指定 -m 模型以生成所有的内容。当当前必须这样使用
 goctls api  ent -c ./ent/schema -a sync --model ' '

有点不符合直觉

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.