Skip to content

Commit 2f85ad1

Browse files
committed
update kataras/jwt module
1 parent a727e29 commit 2f85ad1

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

.github/workflows/codeql-analysis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
steps:
4141
- name: Checkout repository
42-
uses: actions/checkout@v2
42+
uses: actions/checkout@v3
4343

4444
# Initializes the CodeQL tools for scanning.
4545
- name: Initialize CodeQL

context/context.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -4178,11 +4178,11 @@ var WriteJSON = func(ctx *Context, v interface{}, options *JSON) error {
41784178

41794179
// See https://golang.org/src/strings/builder.go#L45
41804180
// func bytesToString(b []byte) string {
4181-
// return *(*string)(unsafe.Pointer(&b))
4181+
// return unsafe.String(unsafe.SliceData(b), len(b))
41824182
// }
41834183

41844184
func stringToBytes(s string) []byte {
4185-
return *(*[]byte)(unsafe.Pointer(&s))
4185+
return unsafe.Slice(unsafe.StringData(s), len(s))
41864186
}
41874187

41884188
type (

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ require (
2323
github.com/json-iterator/go v1.1.12
2424
github.com/kataras/blocks v0.0.7
2525
github.com/kataras/golog v0.1.9
26-
github.com/kataras/jwt v0.1.8
26+
github.com/kataras/jwt v0.1.9
2727
github.com/kataras/neffos v0.0.22
2828
github.com/kataras/pio v0.0.12
2929
github.com/kataras/sitemap v0.0.6

go.sum

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)