go 报错汇总
syntax error: non-declaration statement outside function body
我是这样写的,谷歌搜了一下说是运算需要放在main函数里(我是初学go ^_^)。
package main
import (
"log"
"context"
"fmt"
"time"
pa "test/param"
)
r1 := pa.MessageRequest{
"12","34"
}
r2 := pa.EmailRequest{
"12", "34"
}
func main() {
//
}
标签:12,汇总,pa,报错,go,main
From: https://www.cnblogs.com/hhds/p/17058876.html