Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add toml support for config read #77

Merged
merged 1 commit into from
Sep 2, 2020

Conversation

laojianzi
Copy link
Collaborator

What problem does this PR solve?

Issue Number: close #36

Problem Summary: 支持 TOML 配置,支持读取 .toml 文件

What is changed and how it works?

使用 github.com/pelletier/go-toml 来支持 toml,允许读取 toml 内容 unmarshal 到 Config

What's Changed:

  • config/config.go
  • config/fields/cicd/cicd.go
  • config/fields/database/complex/complex.go
  • config/fields/database/database.go
  • config/fields/database/field/field.go
  • config/fields/database/table/table.go
  • config/fields/docker/docker.go
  • example/student.toml
  • go.mod
  • go.sum
  • utility/withCase/withCase.go

Copy link
Collaborator

@longfangsong longfangsong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
感谢提交代码!
如果对项目的未来发展有建议、有想要的feature、或者有想修却不知如何下手的issue,欢迎进一步联系我们!
同时欢迎加入上海大学开源社区QQ群:24061199 一起讨论技术问题

@longfangsong longfangsong merged commit a1927a1 into SHUReeducation:master Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

支持多种配置文件类型
2 participants