Comments (9)
通过添加 -service 参数, 或指定全局渲染参数中的相关值即可
from cloudwego.github.io.
参考 https://github.com/cloudwego/cwgo/blob/main/tpl/hertz/server/standard/layout.yaml#L515
from cloudwego.github.io.
看意思直接用就可以
from cloudwego.github.io.
看意思直接用就可以
package.yaml的router,go和register.go貌似没有这些参数
from cloudwego.github.io.
package.yaml的router,go和register.go貌似没有全局参数
from cloudwego.github.io.
@FGYFFFF 我发现 registry 好像是在一些方面写死了吗, 我在模版里添加的任何东西都无法被读取到
from cloudwego.github.io.
package.yaml的router,go和register.go貌似没有全局参数
router.go 是可以读取到的, 我试了一下
from cloudwego.github.io.
package.yaml的router,go和register.go貌似没有全
文档这块写的有些问题, router.go(https://github.com/cloudwego/hertz/blob/develop/cmd/hz/generator/router.go#L31)/register.go(https://github.com/cloudwego/hertz/blob/develop/cmd/hz/generator/router.go#L298) 用的参数不是文档里的那些参数,是运行时构建的参数。
不推荐修改路由相关的模板
from cloudwego.github.io.
@FGYFFFF 主要是我在 router.go 中修改模版是有效的, biz/route/register.go 感觉是干脆就不读取配置文件的 body 了
就是我发现 模版配置在 biz/router/register.go 好像是失效了?
from cloudwego.github.io.
Related Issues (20)
- 进阶教程发现多字,请修改一下 HOT 2
- Perform check on the translation of Thrift Streaming, and publish it HOT 3
- Translate Multiple Services English doc into Chinese and publish it HOT 1
- 进阶教程-调用服务,示例代码错误 HOT 2
- 进阶教程-商品服务接入, 代码错误 HOT 3
- 主语用错了?不应该是我,可以删掉或者改成我们。 HOT 1
- go get github.com/hertz-contrib/pprof HOT 1
- Import "openapiv3/annotations.proto" was not found or had errors. HOT 1
- SetCustomSignalWaiter HOT 2
- 文档代码区阅读很不方便 HOT 2
- logrus
- Language: add Japanese version for the websites and docs
- 基于PB的泛化调用方式只能基于本地proto文件 HOT 2
- 泛化调用中pb的依赖问题 HOT 2
- 单 Server 多 Service HOT 1
- 基础示例int48.go:25,不兼容32位系统。 HOT 1
- Thrift Validator HOT 1
- kitexclient调用外部的grpc服务会卡住 HOT 1
- Build error using hugo 0.129.0 (or any relative new version)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudwego.github.io.