添加了对.json配置文件的支持#49
Merged
longfangsong merged 10 commits intoSHUReeducation:masterfrom Aug 3, 2020
Merged
Conversation
add a flag --force ,but it wont change anything about Action
This reverts commit da2b0a0.
This reverts commit b48f9f6.
This reverts commit da2b0a0.
add a support to json now the cli tool can generate target dir by json, and it will choose the load function by the extension of the file assigned by '-f'.
Collaborator
下次可以就发两个pr,我会merge的。
Golang的文档就是大便,Rust不知道比他高到哪里去了。
这个没必要写那么详细 😄,稍微写点就得了 |
longfangsong
reviewed
Aug 3, 2020
longfangsong
reviewed
Aug 3, 2020
longfangsong
reviewed
Aug 3, 2020
longfangsong
reviewed
Aug 3, 2020
longfangsong
reviewed
Aug 3, 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Issue Number: #36
Problem Summary:
添加了对.json的支持.
ps. 如果merge了的话关一下 #48 那边的修改在这里也应用了
pps. 这里的json结构和yaml不完全一样, 手动把
tablename,fields和complex收在了一个新的table下面(原本的结构不知道怎么去处理这个部分 如果有资料可以学的话发我一下)What is changed and how it works?
由
-f指定的文件的扩展名自行选用对应的函数.(见configFile\configFile.go:42)LoadYaml函数, 添加了FromJson函数.example\student.json文件withCase的unmarshalJSON接口What's Changed: