This commit is contained in:
aozhiwei 2020-08-28 11:48:15 +08:00
parent d1c788bb06
commit 5d0b0eacad
2 changed files with 36 additions and 0 deletions

31
csvreader.go Normal file
View File

@ -0,0 +1,31 @@
package q5
import "ioutil"
type CsvReader struct {
columns map[string]int32
values []XValue
currLine int32
}
func (this *CsvReader) Load(fileName string) bool {
f, err := ioutil.ReadFile(fileName)
if err == nil {
defer f.Close()
}
return err == nil
}
func (this *CsvReader) NextLine() bool {
return true
}
func (this *CsvReader) GetValue(fieldName string) *XValue {
return nil
}
func (this *CsvReader) KeyExists(fieldName string) bool {
return true
}

5
sysutils.go Normal file
View File

@ -0,0 +1,5 @@
package q5
func GetDaySeconds(seconds int64) int64 {
return 0
}