Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: develop
Fetching contributors…

Cannot retrieve contributors at this time

executable file 32 lines (28 sloc) 0.59 kb
package main
import (
"fmt"
"flag"
"os"
"log"
"runtime"
"runtime/pprof"
//"time"
)
var cpuprofile = flag.String("cpuprofile", "", "write cpu profile to file")
func main() {
runtime.GOMAXPROCS(4)
fmt.Printf("Hello, World\n")
flag.Parse()
if *cpuprofile != "" {
fmt.Printf("CPU Profiling Enabled")
f, err := os.Create(*cpuprofile)
if err != nil {
log.Fatal(err)
}
pprof.StartCPUProfile(f)
}
db := NewDb()
server := NewServer(db)
// quit := make(chan bool)
server.Start()
}
Jump to Line
Something went wrong with that request. Please try again.