示例#1
0
func main() {
	ctx := context.Background()
	kami.Context = ctx

	kami.PanicHandler = PanicHandler
	kami.Get("/", index)

	rollbar.Message(rollbar.INFO, "test")

	kami.Serve()
}
示例#2
0
func ReportInfo(message string) {
	fmt.Println("Message:", message)
	rollbar.Message("info", message)
}
示例#3
0
func ReportDebug(message string) {
	fmt.Println("Debug:", message)
	rollbar.Message("debug", message)
}