Skip to content

Commit

Permalink
mod: Remove the unintenioal lib
Browse files Browse the repository at this point in the history
Just used 'slog' and did not check the import, and it was not the std one but
a package one so we can remove that and use the std one
  • Loading branch information
xescugc committed Feb 5, 2024
1 parent 4030ea6 commit 930dae8
Show file tree
Hide file tree
Showing 9 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
go-version: '1.21'

- name: Build
run: make build
Expand Down
2 changes: 1 addition & 1 deletion client/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"context"
"encoding/json"
"fmt"
"log/slog"
"net/http"
"net/url"
"time"

"github.com/sagikazarmark/slog-shim"
"github.com/xescugc/go-flux"
"github.com/xescugc/maze-wars/action"
"github.com/xescugc/maze-wars/store"
Expand Down
2 changes: 1 addition & 1 deletion client/wasm/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"fmt"
"io/ioutil"
"log"
"log/slog"
"syscall/js"

"github.com/sagikazarmark/slog-shim"
"github.com/xescugc/go-flux"
"github.com/xescugc/maze-wars/client"
"github.com/xescugc/maze-wars/store"
Expand Down
2 changes: 1 addition & 1 deletion cmd/client/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ package main
import (
"context"
"fmt"
"log/slog"
"os"
"path"

"github.com/adrg/xdg"
"github.com/sagikazarmark/slog-shim"
"github.com/spf13/cobra"
"github.com/xescugc/go-flux"
"github.com/xescugc/maze-wars/client"
Expand Down
2 changes: 1 addition & 1 deletion cmd/server/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package main

import (
"fmt"
"log/slog"
"os"
"path"
"strings"

"github.com/adrg/xdg"
"github.com/sagikazarmark/slog-shim"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/xescugc/go-flux"
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ require (
github.com/gorilla/handlers v1.5.2
github.com/gorilla/mux v1.8.1
github.com/hajimehoshi/ebiten/v2 v2.6.4
github.com/sagikazarmark/slog-shim v0.1.0
github.com/spf13/cobra v1.8.0
github.com/spf13/viper v1.18.1
github.com/stretchr/testify v1.8.4
Expand All @@ -32,6 +31,7 @@ require (
github.com/pelletier/go-toml/v2 v2.1.0 // indirect
github.com/pmezard/go-difflib v1.0.1-0.20181226105442-5d4384ee4fb2 // indirect
github.com/sagikazarmark/locafero v0.4.0 // indirect
github.com/sagikazarmark/slog-shim v0.1.0 // indirect
github.com/sourcegraph/conc v0.3.0 // indirect
github.com/spf13/afero v1.11.0 // indirect
github.com/spf13/cast v1.6.0 // indirect
Expand Down
2 changes: 1 addition & 1 deletion integration/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ package integration_test
import (
"context"
"io/ioutil"
"log/slog"
"os"
"os/exec"
"runtime"
"testing"
"time"

"github.com/golang/mock/gomock"
"github.com/sagikazarmark/slog-shim"
"github.com/stretchr/testify/require"
"github.com/xescugc/go-flux"
"github.com/xescugc/maze-wars/client"
Expand Down
2 changes: 1 addition & 1 deletion server/action.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package server
import (
"context"
"log"
"log/slog"
"time"

"github.com/sagikazarmark/slog-shim"
"github.com/xescugc/go-flux"
"github.com/xescugc/maze-wars/action"
"github.com/xescugc/maze-wars/store"
Expand Down
Binary file modified server/assets/wasm/maze-wars.wasm
Binary file not shown.

0 comments on commit 930dae8

Please sign in to comment.