Skip to content

Commit

Permalink
Merge pull request #178 from poteto-go/20250103/ch-mod
Browse files Browse the repository at this point in the history
BREAKING: github.com/poteto0/poteto -> github.com/poteto-go/poteto
  • Loading branch information
poteto0 authored Jan 3, 2025
2 parents 80544b8 + c3602e5 commit b20db6f
Show file tree
Hide file tree
Showing 59 changed files with 101 additions and 101 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test-1_21.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ jobs:
with:
go-version: "1.21.x"
# noinlineによるテスト実行
# https://github.com/poteto0/poteto/issues/169
# https://github.com/poteto-go/poteto/issues/169
- name: Test
run: go test ./... -cover -bench . -benchtime 100000x -gcflags=all=-l
2 changes: 1 addition & 1 deletion .github/workflows/test-1_22.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ jobs:
with:
go-version: "1.22.x"
# noinlineによるテスト実行
# https://github.com/poteto0/poteto/issues/169
# https://github.com/poteto-go/poteto/issues/169
- name: Test
run: go test ./... -cover -bench . -benchtime 100000x -gcflags=all=-l
8 changes: 4 additions & 4 deletions .github/workflows/test-1_23.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ jobs:
with:
go-version: "1.23.x"
# noinlineによるテスト実行
# https://github.com/poteto0/poteto/issues/169
# https://github.com/poteto-go/poteto/issues/169
- name: Test
run: go test ./... -coverprofile cover.out.tmp -bench . -benchtime 100000x -gcflags=all=-l
- name: remove not template path
run: cat cover.out.tmp | grep -v "github.com/poteto0/poteto/cmd/template" > cover2.out.tmp
run: cat cover.out.tmp | grep -v "github.com/poteto-go/poteto/cmd/template" > cover2.out.tmp
- name: remove not constant path
run: cat cover2.out.tmp | grep -v "github.com/poteto0/poteto/constant" > cover3.out.tmp
run: cat cover2.out.tmp | grep -v "github.com/poteto-go/poteto/constant" > cover3.out.tmp
- name: remove example path
run: cat cover3.out.tmp | grep -v "github.com/poteto0/poteto/constant" > coverage.txt
run: cat cover3.out.tmp | grep -v "github.com/poteto-go/poteto/constant" > coverage.txt

- name: upload coverage
uses: codecov/codecov-action@v1
Expand Down
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
### 0.26.5

- BUG: no-inline test; issue below by @poteto0 in #173
https://github.com/poteto0/poteto/issues/169
https://github.com/poteto-go/poteto/issues/169
- TEST: ut upgrated by @poteto0 in #173
- REF: split cmd & engine by @poteto0 in #173

Expand Down
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ I appreciate your consideration to contribute to this project! This document is

If you find a bug or have a feature request, please open an issue on GitHub.

1. Check [the Issue Tracker](https://github.com/poteto0/poteto/issues) for existing issues.
2. When requesting a new issue or feature, please use [the templates](https://github.com/poteto0/poteto/issues/new?assignees=&labels=&projects=&template=-bug-----feature--issue-title.md&title=) and provide as much detail as possible.
1. Check [the Issue Tracker](https://github.com/poteto-go/poteto/issues) for existing issues.
2. When requesting a new issue or feature, please use [the templates](https://github.com/poteto-go/poteto/issues/new?assignees=&labels=&projects=&template=-bug-----feature--issue-title.md&title=) and provide as much detail as possible.

### Development

1. Check [the Issue Tracker](https://github.com/poteto0/poteto/issues), make sure if there is anything relevant to the problem you are trying to solve. Or create New Issue.
1. Check [the Issue Tracker](https://github.com/poteto-go/poteto/issues), make sure if there is anything relevant to the problem you are trying to solve. Or create New Issue.
2. Fork repo
3. Create a new branch.

Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
We have confirmed that it works with various versions: [email protected], [email protected], [email protected]

```sh
go get github.com/poteto0/[email protected]
go get github.com/poteto-go/[email protected]
go mod tidy
```

## Example App For Poteto

https://github.com/poteto0/poteto-sample-api/tree/main
https://github.com/poteto-go/poteto-sample-api/tree/main

or `/examples`

Expand All @@ -24,7 +24,7 @@ It will be moved to other repo.
We support cli tool. But if you doesn't like it, you can create poteto-app w/o cli of course.

```sh
go install github.com/poteto0/poteto/cmd/[email protected]
go install github.com/poteto-go/poteto/cmd/[email protected]
```

Create file.
Expand Down Expand Up @@ -120,8 +120,8 @@ package main
import (
"net/http"

"github.com/poteto0/poteto"
"github.com/poteto0/poteto/middleware"
"github.com/poteto-go/poteto"
"github.com/poteto-go/poteto/middleware"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion banner.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ const Banner = `
⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀⡀
Simple Web Framework For GoLang
https://github.com/poteto0/poteto
https://github.com/poteto-go/poteto
===================================================
`
2 changes: 1 addition & 1 deletion binder.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package poteto
import (
"strings"

"github.com/poteto0/poteto/constant"
"github.com/poteto-go/poteto/constant"
)

type Binder interface {
Expand Down
2 changes: 1 addition & 1 deletion binder_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"net/http/httptest"
"testing"

"github.com/poteto0/poteto/constant"
"github.com/poteto-go/poteto/constant"
)

func TestBind(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions cmd/cmd-new/cmd_new.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"os"

"github.com/poteto0/poteto/cmd/engine"
"github.com/poteto-go/poteto/cmd/engine"

"github.com/manifoldco/promptui"
)
Expand Down Expand Up @@ -51,7 +51,7 @@ func CommandNew() {

func help() {
fmt.Println("poteto-cli new: support creating poteto-app")
fmt.Println("https://github.com/poteto0/poteto")
fmt.Println("https://github.com/poteto-go/poteto")
fmt.Println("========================================")
fmt.Println("")
fmt.Println("Options:")
Expand Down
2 changes: 1 addition & 1 deletion cmd/cmd-new/cmd_new_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"bou.ke/monkey"
"github.com/manifoldco/promptui"
"github.com/poteto0/poteto/cmd/engine"
"github.com/poteto-go/poteto/cmd/engine"
)

func TestCommandNew(t *testing.T) {
Expand Down
8 changes: 4 additions & 4 deletions cmd/cmd-run/cmd_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"fmt"
"os"

"github.com/poteto0/poteto/cmd/core"
"github.com/poteto0/poteto/cmd/engine"
"github.com/poteto0/poteto/utils"
"github.com/poteto-go/poteto/cmd/core"
"github.com/poteto-go/poteto/cmd/engine"
"github.com/poteto-go/poteto/utils"
)

func loadOption() core.RunnerOption {
Expand Down Expand Up @@ -55,7 +55,7 @@ func CommandRun() {

func help() {
fmt.Println("poteto-cli run: hot-reload run api server")
fmt.Println("https://github.com/poteto0/poteto")
fmt.Println("https://github.com/poteto-go/poteto")
fmt.Println("========================================")
fmt.Println("")
fmt.Println("Options:")
Expand Down
4 changes: 2 additions & 2 deletions cmd/cmd-run/cmd_run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"

"bou.ke/monkey"
"github.com/poteto0/poteto/cmd/core"
"github.com/poteto0/poteto/cmd/engine"
"github.com/poteto-go/poteto/cmd/core"
"github.com/poteto-go/poteto/cmd/engine"
)

func TestHelp(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/core/runner_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (

"github.com/fatih/color"
"github.com/fsnotify/fsnotify"
"github.com/poteto0/poteto/utils"
"github.com/poteto-go/poteto/utils"
)

type RunnerOption struct {
Expand Down
4 changes: 2 additions & 2 deletions cmd/engine/engine_new.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import (
"path/filepath"
"strings"

"github.com/poteto0/poteto/cmd/template"
"github.com/poteto0/poteto/utils"
"github.com/poteto-go/poteto/cmd/template"
"github.com/poteto-go/poteto/utils"
)

type EngineNewParam struct {
Expand Down
2 changes: 1 addition & 1 deletion cmd/engine/engine_new_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"testing"

"bou.ke/monkey"
"github.com/poteto0/poteto/cmd/template"
"github.com/poteto-go/poteto/cmd/template"
)

func TestRunNew(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cmd/engine/engine_run.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"os"
"os/signal"

"github.com/poteto0/poteto/cmd/core"
"github.com/poteto-go/poteto/cmd/core"
)

func RunRun(option core.RunnerOption) error {
Expand Down
2 changes: 1 addition & 1 deletion cmd/engine/engine_run_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
"time"

"github.com/poteto0/poteto/cmd/core"
"github.com/poteto-go/poteto/cmd/core"
)

func TestSuccessRunRun(t *testing.T) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/poteto-cli/poteto-cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"fmt"
"os"

cmdnew "github.com/poteto0/poteto/cmd/cmd-new"
cmdrun "github.com/poteto0/poteto/cmd/cmd-run"
cmdnew "github.com/poteto-go/poteto/cmd/cmd-new"
cmdrun "github.com/poteto-go/poteto/cmd/cmd-run"
)

func main() {
Expand Down Expand Up @@ -38,7 +38,7 @@ func main() {

func help() {
fmt.Println("poteto-cli: support creating poteto-app")
fmt.Println("https://github.com/poteto0/poteto")
fmt.Println("https://github.com/poteto-go/poteto")
fmt.Println("========================================")
fmt.Println("")
fmt.Println("Command: poteto-cli [command]")
Expand Down
4 changes: 2 additions & 2 deletions cmd/poteto-cli/poteto-cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"testing"

"bou.ke/monkey"
cmdnew "github.com/poteto0/poteto/cmd/cmd-new"
cmdrun "github.com/poteto0/poteto/cmd/cmd-run"
cmdnew "github.com/poteto-go/poteto/cmd/cmd-new"
cmdrun "github.com/poteto-go/poteto/cmd/cmd-run"
)

func TestPotetoCliMai(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions cmd/template/defalut.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package main
import (
"net/http"
"github.com/poteto0/poteto"
"github.com/poteto0/poteto/middleware"
"github.com/poteto-go/poteto"
"github.com/poteto-go/poteto/middleware"
)
func main() {
Expand Down
4 changes: 2 additions & 2 deletions cmd/template/fast.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ package main
import (
"net/http"
"github.com/poteto0/poteto"
"github.com/poteto0/poteto/middleware"
"github.com/poteto-go/poteto"
"github.com/poteto-go/poteto/middleware"
)
func main() {
Expand Down
2 changes: 1 addition & 1 deletion cmd/template/jsonrpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package main
import (
"net/http"
"github.com/poteto0/poteto"
"github.com/poteto-go/poteto"
)
type (
Expand Down
2 changes: 1 addition & 1 deletion cmd/template/jsonrpc_fast.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ package main
import (
"net/http"
"github.com/poteto0/poteto"
"github.com/poteto-go/poteto"
)
type (
Expand Down
4 changes: 2 additions & 2 deletions context.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"github.com/goccy/go-json"
"github.com/google/uuid"
"github.com/harakeishi/gats"
"github.com/poteto0/poteto/constant"
"github.com/poteto0/poteto/utils"
"github.com/poteto-go/poteto/constant"
"github.com/poteto-go/poteto/utils"
)

type Context interface {
Expand Down
2 changes: 1 addition & 1 deletion context_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (

"bou.ke/monkey"
"github.com/google/uuid"
"github.com/poteto0/poteto/constant"
"github.com/poteto-go/poteto/constant"
)

func TestJSON(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion examples/api/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module simple-api

go 1.21.8

require github.com/poteto0/poteto v0.26.0
require github.com/poteto-go/poteto v0.26.0

require (
github.com/fatih/color v1.18.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions examples/api/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovk
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/poteto0/poteto v0.26.0 h1:rSlTAsRUwehp6KEgEAOpoP17di1bpl6av96ywx3Awfg=
github.com/poteto0/poteto v0.26.0/go.mod h1:wEYJSH6npJ/wjRh2ux5/49VMtVaTsQKcxo+rfdIQIpU=
github.com/poteto-go/poteto v0.26.0 h1:rSlTAsRUwehp6KEgEAOpoP17di1bpl6av96ywx3Awfg=
github.com/poteto-go/poteto v0.26.0/go.mod h1:wEYJSH6npJ/wjRh2ux5/49VMtVaTsQKcxo+rfdIQIpU=
github.com/ybbus/jsonrpc/v3 v3.1.5 h1:0cC/QzS8OCuXYqqDbYnKKhsEe+IZLrNlDx8KPCieeW0=
github.com/ybbus/jsonrpc/v3 v3.1.5/go.mod h1:U1QbyNfL5Pvi2roT0OpRbJeyvGxfWYSgKJHjxWdAEeE=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
Expand Down
4 changes: 2 additions & 2 deletions examples/api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"net/http"

"github.com/poteto0/poteto"
"github.com/poteto0/poteto/middleware"
"github.com/poteto-go/poteto"
"github.com/poteto-go/poteto/middleware"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/fast-api/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module simple-api-fast

go 1.21.8

require github.com/poteto0/poteto v0.26.0
require github.com/poteto-go/poteto v0.26.0

require (
github.com/fatih/color v1.18.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions examples/fast-api/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ github.com/mattn/go-colorable v0.1.13/go.mod h1:7S9/ev0klgBDR4GtXTXX8a3vIGJpMovk
github.com/mattn/go-isatty v0.0.16/go.mod h1:kYGgaQfpe5nmfYZH+SKPsOc2e4SrIfOl2e/yFXSvRLM=
github.com/mattn/go-isatty v0.0.20 h1:xfD0iDuEKnDkl03q4limB+vH+GxLEtL/jb4xVJSWWEY=
github.com/mattn/go-isatty v0.0.20/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/poteto0/poteto v0.26.0 h1:rSlTAsRUwehp6KEgEAOpoP17di1bpl6av96ywx3Awfg=
github.com/poteto0/poteto v0.26.0/go.mod h1:wEYJSH6npJ/wjRh2ux5/49VMtVaTsQKcxo+rfdIQIpU=
github.com/poteto-go/poteto v0.26.0 h1:rSlTAsRUwehp6KEgEAOpoP17di1bpl6av96ywx3Awfg=
github.com/poteto-go/poteto v0.26.0/go.mod h1:wEYJSH6npJ/wjRh2ux5/49VMtVaTsQKcxo+rfdIQIpU=
github.com/ybbus/jsonrpc/v3 v3.1.5 h1:0cC/QzS8OCuXYqqDbYnKKhsEe+IZLrNlDx8KPCieeW0=
github.com/ybbus/jsonrpc/v3 v3.1.5/go.mod h1:U1QbyNfL5Pvi2roT0OpRbJeyvGxfWYSgKJHjxWdAEeE=
golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
Expand Down
4 changes: 2 additions & 2 deletions examples/fast-api/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"net/http"

"github.com/poteto0/poteto"
"github.com/poteto0/poteto/middleware"
"github.com/poteto-go/poteto"
"github.com/poteto-go/poteto/middleware"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion examples/jsonrpc/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ module jsonrpc

go 1.21.8

require github.com/poteto0/poteto v0.26.0
require github.com/poteto-go/poteto v0.26.0

require (
github.com/fatih/color v1.18.0 // indirect
Expand Down
Loading

0 comments on commit b20db6f

Please sign in to comment.