diff --git a/go.mod b/go.mod index b997333..ade3e95 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/changkun/gossafunc +module github.com/changkun/ssaplayground go 1.14 diff --git a/src/boot/boot.go b/src/boot/boot.go index d85888c..68138c0 100644 --- a/src/boot/boot.go +++ b/src/boot/boot.go @@ -7,8 +7,8 @@ import ( "os/signal" "time" - "github.com/changkun/gossafunc/src/config" - "github.com/changkun/gossafunc/src/route" + "github.com/changkun/ssaplayground/src/config" + "github.com/changkun/ssaplayground/src/route" "github.com/sirupsen/logrus" ) @@ -29,23 +29,23 @@ func Run() { signal.Notify(quit, os.Interrupt, os.Kill) sig := <-quit - logrus.Info("gossaweb: service is stopped with signal: ", sig) + logrus.Info("ssaplayground: service is stopped with signal: ", sig) ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second) if err := server.Shutdown(ctx); err != nil { - logrus.Errorf("gossaweb: close gossaweb with error: %v", err) + logrus.Errorf("ssaplayground: close ssaplayground with error: %v", err) } cancel() terminated <- true }() - logrus.Infof("gossaweb: welcome to gossaweb service... http://%s/gossa", config.Get().Addr) + logrus.Infof("ssaplayground: welcome to ssaplayground service... http://%s/gossa", config.Get().Addr) err := server.ListenAndServe() if err != http.ErrServerClosed { - logrus.Info("gossaweb: launch with error: ", err) + logrus.Info("ssaplayground: launch with error: ", err) } <-terminated - logrus.Info("gossaweb: service has terminated successfully, good bye!") + logrus.Info("ssaplayground: service has terminated successfully, good bye!") } diff --git a/src/config/config.go b/src/config/config.go index 97264c7..6f23661 100644 --- a/src/config/config.go +++ b/src/config/config.go @@ -24,10 +24,10 @@ func Get() *Config { } func Init() { - c := flag.String("conf", "", "path to the gossaweb config file") + c := flag.String("conf", "", "path to the ssaplayground config file") usage := func() { fmt.Fprintf(os.Stderr, ` -GOSSAWEB is a web service for exploring Go's SSA intermediate representation. +SSAPLAYGROUND is a web service for exploring Go's SSA intermediate representation. Usage: `) flag.PrintDefaults() diff --git a/src/route/api.go b/src/route/api.go index caf3305..f06038e 100644 --- a/src/route/api.go +++ b/src/route/api.go @@ -13,7 +13,7 @@ import ( "runtime" "strings" - "github.com/changkun/gossafunc/src/config" + "github.com/changkun/ssaplayground/src/config" "github.com/gin-gonic/gin" "github.com/google/uuid" ) diff --git a/src/route/router.go b/src/route/router.go index 24dbd45..fcfd679 100644 --- a/src/route/router.go +++ b/src/route/router.go @@ -4,7 +4,7 @@ import ( "net/http" "net/http/pprof" - "github.com/changkun/gossafunc/src/config" + "github.com/changkun/ssaplayground/src/config" "github.com/gin-gonic/gin" "github.com/sirupsen/logrus" ) diff --git a/src/route/static.go b/src/route/static.go index eaa2618..f4f94f0 100644 --- a/src/route/static.go +++ b/src/route/static.go @@ -6,7 +6,7 @@ import ( "path" "strings" - "github.com/changkun/gossafunc/src/config" + "github.com/changkun/ssaplayground/src/config" "github.com/gin-gonic/gin" ) diff --git a/ssaplayground.go b/ssaplayground.go index 601d467..3b6d620 100644 --- a/ssaplayground.go +++ b/ssaplayground.go @@ -1,6 +1,6 @@ package main -import "github.com/changkun/gossafunc/src/boot" +import "github.com/changkun/ssaplayground/src/boot" func main() { boot.Run()