-
Notifications
You must be signed in to change notification settings - Fork 0
/
time.go
39 lines (30 loc) · 750 Bytes
/
time.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
package MitchDefinedTypes
import (
"fmt"
"github.com/bhbosman/CodeGenerators/mitchgenerator/interfaces"
)
type MitchTime struct {
}
func (self *MitchTime) GetStreamFunctionName() string {
return "mitch_time"
}
func (self *MitchTime) GetPackageName() (bool, string, string) {
return true, "time", self.Kind().String()
}
func (self *MitchTime) GetSequenceCount() (bool, int) {
return false, 0
}
func (self *MitchTime) DefaultValue() string {
_, s, _ := self.GetPackageName()
name := self.GetName()
return fmt.Sprintf("%v.%v{}", s, name)
}
func (self *MitchTime) Kind() interfaces.Kind {
return interfaces.MitchTime
}
func (self *MitchTime) Predefined() bool {
return true
}
func (self *MitchTime) GetName() string {
return "Time"
}