-2

Go でアプリケーションをコンパイルしようとすると、次のエラーが発生します。

C:\Users\Root\go\src\github.com\ussssseeeeeeerrr\test> go build
# github.com/facebookgo/grace/gracehttp
..\..\facebookgo\grace\gracehttp\http.go:104:53: undefined: syscall.SIGUSR2
..\..\facebookgo\grace\gracehttp\http.go:114:8: undefined: syscall.SIGUSR2
..\..\facebookgo\grace\gracehttp\http.go:154:13: undefined: syscall.Kill
# github.com/ussssseeeeeeerrr/test/models
C:\Go\src\github.com\ussssseeeeeeerrr\test\models\setup.go:24:2: undefined: runner.MustPing

何が間違っているのかわかりません。

http.go {行 104}:

    signal.Notify(ch, syscall.SIGINT, syscall.SIGTERM, syscall.SIGUSR2)


http.go {行 114}:

        case syscall.SIGUSR2:


http.go {行 154}:

        if err := syscall.Kill(ppid, syscall.SIGTERM); err != nil {


Import() セクション:

    "bytes"
    "crypto/tls"
    "fmt"
    "log"
    "net"
    "net/http"
    "os"
    "os/signal"
    "sync"
    "syscall"

    "github.com/facebookgo/grace/gracenet"
    "github.com/facebookgo/httpdown"

setup.go {24行目}:

    runner.MustPing(db)

Import() セクション:

    runner "gopkg.in/mgutz/dat.v1/sqlx-runner"
4

1 に答える 1