gogf / gf

GoFrame is a modular, powerful, high-performance and enterprise-class application development framework of Golang.
https://goframe.org
MIT License
11.8k stars 1.61k forks source link

os/gtime: issue config #3590

Closed xiao-bin-bin closed 6 months ago

xiao-bin-bin commented 6 months ago

Description

能不能像 python 的 Django 一样,将 所有支持修改的配置 在初始化项目的时候 生成到 配置文件中, 这样我们可以根据需求直接修改对应的配置就行, goframe在启动的时候直接读取配置文件中的配置进行初始化运行。

Additional

No response

Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Description

Can all configurations that support modification be generated into the configuration file when initializing the project, like Python's Django, so that we can directly modify the corresponding configuration according to needs? Goframe will directly read the configuration in the configuration file when it starts. Carry out initialization operation.

Additional

No response

hailaz commented 6 months ago

好提议,排期一下

Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Good suggestion, please schedule it

hailaz commented 6 months ago

先加一部分

https://github.com/gogf/template-single/commit/b1f0373a5e19d4eceac6501906ec14affe534db6

Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Add part first

xiao-bin-bin commented 6 months ago

@hailaz 感谢大佬对我的想法的支持

Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


@hailaz thanks you guys for supporting my idea