Skip to content

Commit

Permalink
+update repo name
Browse files Browse the repository at this point in the history
  • Loading branch information
lnashier committed Mar 10, 2024
1 parent 3c7d26c commit e3ed81e
Show file tree
Hide file tree
Showing 31 changed files with 58 additions and 58 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Go Applications Framework

[![Go Report Card](https://goreportcard.com/badge/github.com/lnashier/go-app)](https://goreportcard.com/badge/github.com/lnashier/go-app)
[![Go Report Card](https://goreportcard.com/badge/github.com/lnashier/goarc)](https://goreportcard.com/badge/github.com/lnashier/goarc)

An idiomatic & opinionated Go applications framework

Expand Down
4 changes: 2 additions & 2 deletions buildinfo/buildinfo.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package buildinfo

import (
"github.com/lnashier/go-app/env"
"github.com/lnashier/go-app/zson"
"github.com/lnashier/goarc/env"
"github.com/lnashier/goarc/zson"
"net/http"
"time"
)
Expand Down
2 changes: 1 addition & 1 deletion cli/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package cli

import (
"fmt"
"github.com/lnashier/go-app/log"
"github.com/lnashier/goarc/log"
"os"
"os/signal"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion cli/opts.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package cli

import (
"github.com/lnashier/go-app/config"
"github.com/lnashier/goarc/config"
)

type Opt func(*opts)
Expand Down
6 changes: 3 additions & 3 deletions cli/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"encoding/json"
"fmt"
"github.com/lnashier/go-app/buildinfo"
"github.com/lnashier/go-app/config"
"github.com/lnashier/go-app/log"
"github.com/lnashier/goarc/buildinfo"
"github.com/lnashier/goarc/config"
"github.com/lnashier/goarc/log"
"github.com/spf13/cobra"
)

Expand Down
2 changes: 1 addition & 1 deletion config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"encoding/base64"
"fmt"
"github.com/fsnotify/fsnotify"
"github.com/lnashier/go-app/env"
"github.com/lnashier/goarc/env"
"github.com/pkg/errors"
"github.com/spf13/viper"
"io"
Expand Down
2 changes: 1 addition & 1 deletion examples/encoder/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module encoder

go 1.22.0

require github.com/lnashier/go-app v0.3.0
require github.com/lnashier/goarc v0.3.0

require (
github.com/fsnotify/fsnotify v1.7.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions examples/encoder/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/lnashier/go-app v0.3.0 h1:MNW+ZbcvHxyVFKaCxa6W2MWZiQ4xXaRrk2QnMW597Lw=
github.com/lnashier/go-app v0.3.0/go.mod h1:/7qCVj/K4tVjWwnktDcqJLoM66QYWsSHndSAL+OIh+o=
github.com/lnashier/goarc v0.3.0 h1:MNW+ZbcvHxyVFKaCxa6W2MWZiQ4xXaRrk2QnMW597Lw=
github.com/lnashier/goarc v0.3.0/go.mod h1:/7qCVj/K4tVjWwnktDcqJLoM66QYWsSHndSAL+OIh+o=
github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
Expand Down
6 changes: 3 additions & 3 deletions examples/encoder/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"encoding/base64"
"errors"
"fmt"
"github.com/lnashier/go-app/cli"
"github.com/lnashier/go-app/config"
"github.com/lnashier/go-app/log"
"github.com/lnashier/goarc/cli"
"github.com/lnashier/goarc/config"
"github.com/lnashier/goarc/log"
)

func main() {
Expand Down
4 changes: 2 additions & 2 deletions examples/httpapp/cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/lnashier/go-app/config"
"github.com/lnashier/go-app/http/service"
"github.com/lnashier/goarc/config"
"github.com/lnashier/goarc/http/service"
"httpapp/internal/app"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/httpapp/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22.0

require (
github.com/gorilla/mux v1.8.1
github.com/lnashier/go-app v0.3.0
github.com/lnashier/goarc v0.3.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions examples/httpapp/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/lnashier/go-app v0.3.0 h1:MNW+ZbcvHxyVFKaCxa6W2MWZiQ4xXaRrk2QnMW597Lw=
github.com/lnashier/go-app v0.3.0/go.mod h1:/7qCVj/K4tVjWwnktDcqJLoM66QYWsSHndSAL+OIh+o=
github.com/lnashier/goarc v0.3.0 h1:MNW+ZbcvHxyVFKaCxa6W2MWZiQ4xXaRrk2QnMW597Lw=
github.com/lnashier/goarc v0.3.0/go.mod h1:/7qCVj/K4tVjWwnktDcqJLoM66QYWsSHndSAL+OIh+o=
github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
Expand Down
6 changes: 3 additions & 3 deletions examples/httpapp/internal/app/app.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package app

import (
"github.com/lnashier/go-app/config"
"github.com/lnashier/go-app/http/handler"
"github.com/lnashier/go-app/http/service"
"github.com/lnashier/goarc/config"
"github.com/lnashier/goarc/http/handler"
"github.com/lnashier/goarc/http/service"
"net/http"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/httpapp/internal/app/controller.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package app

import "github.com/lnashier/go-app/config"
import "github.com/lnashier/goarc/config"

type Controller struct {
cfg *config.Config
Expand Down
2 changes: 1 addition & 1 deletion examples/httpapp/internal/app/example.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"crypto/md5"
"errors"
"github.com/gorilla/mux"
chttp "github.com/lnashier/go-app/http"
chttp "github.com/lnashier/goarc/http"
"net/http"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/mockserver/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22.0

require (
github.com/fsnotify/fsnotify v1.7.0
github.com/lnashier/go-app v0.3.0
github.com/lnashier/goarc v0.3.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions examples/mockserver/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/lnashier/go-app v0.3.0 h1:MNW+ZbcvHxyVFKaCxa6W2MWZiQ4xXaRrk2QnMW597Lw=
github.com/lnashier/go-app v0.3.0/go.mod h1:/7qCVj/K4tVjWwnktDcqJLoM66QYWsSHndSAL+OIh+o=
github.com/lnashier/goarc v0.3.0 h1:MNW+ZbcvHxyVFKaCxa6W2MWZiQ4xXaRrk2QnMW597Lw=
github.com/lnashier/goarc v0.3.0/go.mod h1:/7qCVj/K4tVjWwnktDcqJLoM66QYWsSHndSAL+OIh+o=
github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
Expand Down
12 changes: 6 additions & 6 deletions examples/mockserver/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ package main
import (
"fmt"
"github.com/fsnotify/fsnotify"
"github.com/lnashier/go-app/config"
"github.com/lnashier/go-app/env"
chandler "github.com/lnashier/go-app/http/handler"
"github.com/lnashier/go-app/http/service"
"github.com/lnashier/go-app/log"
"github.com/lnashier/go-app/zson"
"github.com/lnashier/goarc/config"
"github.com/lnashier/goarc/env"
chandler "github.com/lnashier/goarc/http/handler"
"github.com/lnashier/goarc/http/service"
"github.com/lnashier/goarc/log"
"github.com/lnashier/goarc/zson"
"net/http"
)

Expand Down
4 changes: 2 additions & 2 deletions examples/websocketapp/cmd/main.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package main

import (
"github.com/lnashier/go-app/config"
"github.com/lnashier/go-app/http/service"
"github.com/lnashier/goarc/config"
"github.com/lnashier/goarc/http/service"
"websocketapp/internal/app"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/websocketapp/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ go 1.22.0

require (
github.com/gorilla/websocket v1.5.1
github.com/lnashier/go-app v0.3.0
github.com/lnashier/goarc v0.3.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions examples/websocketapp/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
github.com/kr/pretty v0.3.1/go.mod h1:hoEshYVHaxMs3cyo3Yncou5ZscifuDolrwPKZanG3xk=
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
github.com/kr/text v0.2.0/go.mod h1:eLer722TekiGuMkidMxC/pM04lWEeraHUUmBw8l2grE=
github.com/lnashier/go-app v0.3.0 h1:MNW+ZbcvHxyVFKaCxa6W2MWZiQ4xXaRrk2QnMW597Lw=
github.com/lnashier/go-app v0.3.0/go.mod h1:/7qCVj/K4tVjWwnktDcqJLoM66QYWsSHndSAL+OIh+o=
github.com/lnashier/goarc v0.3.0 h1:MNW+ZbcvHxyVFKaCxa6W2MWZiQ4xXaRrk2QnMW597Lw=
github.com/lnashier/goarc v0.3.0/go.mod h1:/7qCVj/K4tVjWwnktDcqJLoM66QYWsSHndSAL+OIh+o=
github.com/magiconair/properties v1.8.7 h1:IeQXZAiQcpL9mgcAe1Nu6cX9LLw6ExEHKjN0VQdvPDY=
github.com/magiconair/properties v1.8.7/go.mod h1:Dhd985XPs7jluiymwWYZ0G4Z61jb3vdS329zhj2hYo0=
github.com/mitchellh/mapstructure v1.5.0 h1:jeMsZIYE/09sWLaz43PL7Gy6RuMjD2eJVyuac5Z2hdY=
Expand Down
8 changes: 4 additions & 4 deletions examples/websocketapp/internal/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package app

import (
"github.com/gorilla/websocket"
"github.com/lnashier/go-app/config"
chttp "github.com/lnashier/go-app/http"
chandler "github.com/lnashier/go-app/http/handler"
"github.com/lnashier/go-app/http/service"
"github.com/lnashier/goarc/config"
chttp "github.com/lnashier/goarc/http"
chandler "github.com/lnashier/goarc/http/handler"
"github.com/lnashier/goarc/http/service"
"net/http"
"time"
"websocketapp/internal/app/echo"
Expand Down
2 changes: 1 addition & 1 deletion examples/websocketapp/internal/app/echo/echo.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package echo

import (
"github.com/gorilla/websocket"
"github.com/lnashier/go-app/log"
"github.com/lnashier/goarc/log"
"math"
"strconv"
"sync"
Expand Down
4 changes: 2 additions & 2 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/lnashier/go-app
module github.com/lnashier/goarc

go 1.21.1
go 1.22

require (
github.com/fsnotify/fsnotify v1.7.0
Expand Down
4 changes: 2 additions & 2 deletions http/handler/error.go
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package handler

import (
chttp "github.com/lnashier/go-app/http"
"github.com/lnashier/go-app/zson"
chttp "github.com/lnashier/goarc/http"
"github.com/lnashier/goarc/zson"
"net/http"
)

Expand Down
2 changes: 1 addition & 1 deletion http/handler/json.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package handler

import (
"github.com/lnashier/go-app/zson"
"github.com/lnashier/goarc/zson"
"net/http"
)

Expand Down
2 changes: 1 addition & 1 deletion http/service/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package service

import (
"fmt"
"github.com/lnashier/go-app/log"
"github.com/lnashier/goarc/log"
"os"
"os/signal"
"strings"
Expand Down
2 changes: 1 addition & 1 deletion http/service/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package service

import (
"bufio"
"github.com/lnashier/go-app/log"
"github.com/lnashier/goarc/log"
"net"
"net/http"
"time"
Expand Down
2 changes: 1 addition & 1 deletion http/service/opts.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package service

import (
"github.com/lnashier/go-app/config"
"github.com/lnashier/goarc/config"
)

type Opt func(*opts)
Expand Down
6 changes: 3 additions & 3 deletions http/service/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"errors"
"github.com/gorilla/mux"
"github.com/lnashier/go-app/buildinfo"
"github.com/lnashier/go-app/config"
"github.com/lnashier/go-app/log"
"github.com/lnashier/goarc/buildinfo"
"github.com/lnashier/goarc/config"
"github.com/lnashier/goarc/log"
"github.com/urfave/negroni"
"net/http"
"strings"
Expand Down
6 changes: 3 additions & 3 deletions log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ package log

import (
"fmt"
"github.com/lnashier/go-app/buildinfo"
"github.com/lnashier/go-app/env"
"github.com/lnashier/go-app/zson"
"github.com/lnashier/goarc/buildinfo"
"github.com/lnashier/goarc/env"
"github.com/lnashier/goarc/zson"
"log"
"os"
"time"
Expand Down

0 comments on commit e3ed81e

Please sign in to comment.