Skip to content

Commit 776b2fa

Browse files
committed
all: rename ssaplayground
1 parent 0670169 commit 776b2fa

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/changkun/gossafunc
1+
module github.com/changkun/ssaplayground
22

33
go 1.14
44

src/boot/boot.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import (
77
"os/signal"
88
"time"
99

10-
"github.com/changkun/gossafunc/src/config"
11-
"github.com/changkun/gossafunc/src/route"
10+
"github.com/changkun/ssaplayground/src/config"
11+
"github.com/changkun/ssaplayground/src/route"
1212
"github.com/sirupsen/logrus"
1313
)
1414

@@ -29,23 +29,23 @@ func Run() {
2929
signal.Notify(quit, os.Interrupt, os.Kill)
3030
sig := <-quit
3131

32-
logrus.Info("gossaweb: service is stopped with signal: ", sig)
32+
logrus.Info("ssaplayground: service is stopped with signal: ", sig)
3333

3434
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
3535
if err := server.Shutdown(ctx); err != nil {
36-
logrus.Errorf("gossaweb: close gossaweb with error: %v", err)
36+
logrus.Errorf("ssaplayground: close ssaplayground with error: %v", err)
3737
}
3838

3939
cancel()
4040
terminated <- true
4141
}()
4242

43-
logrus.Infof("gossaweb: welcome to gossaweb service... http://%s/gossa", config.Get().Addr)
43+
logrus.Infof("ssaplayground: welcome to ssaplayground service... http://%s/gossa", config.Get().Addr)
4444
err := server.ListenAndServe()
4545
if err != http.ErrServerClosed {
46-
logrus.Info("gossaweb: launch with error: ", err)
46+
logrus.Info("ssaplayground: launch with error: ", err)
4747
}
4848

4949
<-terminated
50-
logrus.Info("gossaweb: service has terminated successfully, good bye!")
50+
logrus.Info("ssaplayground: service has terminated successfully, good bye!")
5151
}

src/config/config.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ func Get() *Config {
2424
}
2525

2626
func Init() {
27-
c := flag.String("conf", "", "path to the gossaweb config file")
27+
c := flag.String("conf", "", "path to the ssaplayground config file")
2828
usage := func() {
2929
fmt.Fprintf(os.Stderr, `
30-
GOSSAWEB is a web service for exploring Go's SSA intermediate representation.
30+
SSAPLAYGROUND is a web service for exploring Go's SSA intermediate representation.
3131
Usage:
3232
`)
3333
flag.PrintDefaults()

src/route/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import (
1313
"runtime"
1414
"strings"
1515

16-
"github.com/changkun/gossafunc/src/config"
16+
"github.com/changkun/ssaplayground/src/config"
1717
"github.com/gin-gonic/gin"
1818
"github.com/google/uuid"
1919
)

src/route/router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import (
44
"net/http"
55
"net/http/pprof"
66

7-
"github.com/changkun/gossafunc/src/config"
7+
"github.com/changkun/ssaplayground/src/config"
88
"github.com/gin-gonic/gin"
99
"github.com/sirupsen/logrus"
1010
)

src/route/static.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import (
66
"path"
77
"strings"
88

9-
"github.com/changkun/gossafunc/src/config"
9+
"github.com/changkun/ssaplayground/src/config"
1010
"github.com/gin-gonic/gin"
1111
)
1212

ssaplayground.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
package main
22

3-
import "github.com/changkun/gossafunc/src/boot"
3+
import "github.com/changkun/ssaplayground/src/boot"
44

55
func main() {
66
boot.Run()

0 commit comments

Comments
 (0)