File: app.go

package info (click to toggle)
golang-github-bugsnag-bugsnag-go 1.0.5%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 456 kB
  • ctags: 198
  • sloc: makefile: 9
file content (19 lines) | stat: -rw-r--r-- 280 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package controllers

import "github.com/revel/revel"
import "time"

type App struct {
	*revel.Controller
}

func (c App) Index() revel.Result {
	go func() {
		time.Sleep(5 * time.Second)
		panic("hello!")
	}()

	s := make([]string, 0)
	revel.INFO.Print(s[0])
	return c.Render()
}