1
This commit is contained in:
parent
d1c788bb06
commit
5d0b0eacad
31
csvreader.go
Normal file
31
csvreader.go
Normal 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
5
sysutils.go
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
package q5
|
||||||
|
|
||||||
|
func GetDaySeconds(seconds int64) int64 {
|
||||||
|
return 0
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user