update
This commit is contained in:
@@ -63,6 +63,9 @@ var OttoFuncs = map[string]func(string) string{
|
||||
md5str := fmt.Sprintf("%x", w.Sum(nil))
|
||||
return md5str
|
||||
},
|
||||
"timeFormat": func(str string) string {
|
||||
return time.Now().Format(str)
|
||||
},
|
||||
}
|
||||
|
||||
func init123() {
|
||||
|
||||
@@ -401,6 +401,13 @@ Alias=sillyGirl.service`
|
||||
return OttoFuncs["machineId"]("")
|
||||
},
|
||||
},
|
||||
{
|
||||
Rules: []string{"^time$"},
|
||||
Admin: true,
|
||||
Handle: func(s Sender) interface{} {
|
||||
return OttoFuncs["timeFormat"]("2006-01-02 15:04:05")
|
||||
},
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
+182
-182
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user