!17 删除ConfigParser.go,修改ConfigParserJson.go

Merge pull request !17 from a-alpha/alpha-dev
This commit is contained in:
a-alpha 2022-11-01 14:42:44 +00:00 committed by Gitee
commit 430aa46373
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 16 additions and 52 deletions

View File

@ -1,36 +0,0 @@
////////////////////////////////////////////////////////////////
//
// Filename: ConfigParser.go
//
// Version: 1.0
// Created: 2022年10月25日 17时53分41秒
// Revision: none
// Compiler: go
//
// Author: alpha
// Organization: alpha
// Contacts: chenxinquan@kylinos.cn
//
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// Description:
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// Log:
////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////
// Todo:
//
////////////////////////////////////////////////////////////////
package genmai
type ConfigParserIFace interface {
parse(path string) error
}
type ConfigParser struct {
}

View File

@ -27,19 +27,19 @@
////////////////////////////////////////////////////////////////
package genmai
// TODO: TBD
type ConfigJSON struct {
}
type ConfigParserJSON struct {
cpyConfigParser ConfigParser
cpyConfig ConfigJSON
}
// ConfigParserIFace :: pasre
func (this *ConfigParserJSON) parse(path string) error {
// TODO
// JSON::unmarshell(path)
return nil
}
//
//// TODO: TBD
//type ConfigJSON struct {
//}
//
//type ConfigParserJSON struct {
// cpyConfigParser ConfigParser
// cpyConfig ConfigJSON
//}
//
//// ConfigParserIFace :: pasre
//func (this *ConfigParserJSON) parse(path string) error {
// // TODO
// // JSON::unmarshell(path)
// return nil
//}