示例#1
0
文件: top.go 项目: Laller/chill
func (t *Top) Post(ret []interface{}) {
	uni := t.uni
	ran := verbinfo.NewRanalyzer(ret)
	var err error
	if ran.HadError() {
		err = ran.Error()
	}
	t.actionResponse(err, uni.Sentence.Verb)
}
示例#2
0
文件: top.go 项目: Laller/chill
func (t *Top) Get(ret []interface{}) {
	uni := t.uni
	ran := verbinfo.NewRanalyzer(ret)
	if ran.HadError() {
		display.DErr(uni, ran.Error())
		return
	}
	burnResults(uni.Dat, "main", ran.NonErrors())
	display.D(uni)
}