q5/sysutils.go
aozhiwei f58f61120a 1
2020-09-07 16:57:34 +08:00

32 lines
488 B
Go

package q5
import "net/http"
import "time"
func GetDaySeconds(seconds int64) int64 {
return 0
}
func GetTickCount() int64 {
return time.Now().UnixNano() / 1e6
}
func MkInt64(lo32 int32, hi32 int32) int64 {
return int64(lo32) + (int64(hi32) << 32)
}
func Request(r *http.Request, name string) *XValue {
if r.Form == nil {
r.ParseForm()
}
v := &XValue{}
if vs, ok := r.Form[name]; ok {
if len(vs) > 0 {
v.SetString(vs[0])
} else {
v.SetString("")
}
}
return v
}