Skip to content

Commit 674963a

Browse files
use faster json library
1 parent 7305d57 commit 674963a

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

checks/checks.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package checks
22

33
import (
44
"bytes"
5-
"encoding/json"
65
"errors"
76
"fmt"
87
"io"
@@ -18,6 +17,7 @@ import (
1817
api "github.com/bootdotdev/bootdev/client"
1918
"github.com/bootdotdev/bootdev/messages"
2019
tea "github.com/charmbracelet/bubbletea"
20+
"github.com/goccy/go-json"
2121
"github.com/itchyny/gojq"
2222
"github.com/spf13/cobra"
2323
"github.com/spf13/viper"

client/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ package api
22

33
import (
44
"bytes"
5-
"encoding/json"
65
"errors"
76
"fmt"
87
"io"
98
"net/http"
109

10+
"github.com/goccy/go-json"
1111
"github.com/spf13/viper"
1212
)
1313

client/lessons.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
package api
22

33
import (
4-
"encoding/json"
54
"fmt"
5+
6+
"github.com/goccy/go-json"
67
)
78

89
type Lesson struct {

render/render.go

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

33
import (
4-
"encoding/json"
54
"fmt"
65
"net/http"
76
"os"
@@ -14,6 +13,7 @@ import (
1413
"github.com/charmbracelet/bubbles/spinner"
1514
tea "github.com/charmbracelet/bubbletea"
1615
"github.com/charmbracelet/lipgloss"
16+
"github.com/goccy/go-json"
1717
"github.com/muesli/termenv"
1818
"github.com/spf13/viper"
1919
)

version/version.go

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

33
import (
4-
"encoding/json"
54
"fmt"
65
"io"
76
"net/http"
@@ -10,6 +9,7 @@ import (
109
"slices"
1110
"strings"
1211

12+
"github.com/goccy/go-json"
1313
"golang.org/x/mod/semver"
1414
)
1515

0 commit comments

Comments
 (0)