mirror of
https://github.com/nadoo/glider.git
synced 2025-02-23 17:35:40 +08:00
21 lines
271 B
Go
21 lines
271 B
Go
//+build dev
|
|
|
|
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"net/http"
|
|
_ "net/http/pprof"
|
|
|
|
_ "github.com/nadoo/glider/proxy/ws"
|
|
)
|
|
|
|
func init() {
|
|
go func() {
|
|
err := http.ListenAndServe(":6060", nil)
|
|
if err != nil {
|
|
fmt.Printf("Create pprof server error: %s\n", err)
|
|
}
|
|
}()
|
|
}
|