Giter Site home page Giter Site logo

Comments (4)

Guwengo avatar Guwengo commented on July 19, 2024

对了,PackageInfo里Namespace现在获得的是空数据,kitex --versionv0.9.1 不过获得没有函数处理也无法实现路径格式

from kitex.

HeyJavaBean avatar HeyJavaBean commented on July 19, 2024

参考:https://www.cloudwego.io/zh/docs/kitex/tutorials/code-gen/custom_tpl/

  1. PackageInfo 的 Namespace 字段
  2. 现在暂时还没这个能力,但我觉得是个很好的提议
  3. 嗯,现在的自定义模板的文档和使用示例确实不是很完整,近期我们有计划对自定义脚手架模块做整体的易用性优化和文档完善,感谢你的提议~

from kitex.

li-jin-gou avatar li-jin-gou commented on July 19, 2024

第二点可以看下 cwgo ,模版内置了 sprig 函数 https://www.cloudwego.io/zh/docs/cwgo/tutorials/templete-extension/ https://github.com/Masterminds/sprig/ 基本上可以满足 90+ 的场景

from kitex.

Guwengo avatar Guwengo commented on July 19, 2024

第二点可以看下cwgo,模版内置了sprig函数https://www.cloudwego.io/zh/docs/cwgo/tutorials/templete-extension/ https://github.com/Masterminds/sprig/基本上可以满足90+的场景

谢谢指点

from kitex.

Related Issues (20)

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.