mirror of
https://github.com/aljazceru/njump.git
synced 2025-12-17 06:14:22 +01:00
successfully mixing in a normal font + the emoji font for some runes only through a myriad of weird hacks.
This commit is contained in:
6
utils.go
6
utils.go
@@ -5,7 +5,6 @@ import (
|
||||
"context"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"hash/maphash"
|
||||
"html"
|
||||
"html/template"
|
||||
"math/rand"
|
||||
@@ -13,7 +12,6 @@ import (
|
||||
"regexp"
|
||||
"strings"
|
||||
"time"
|
||||
"unsafe"
|
||||
|
||||
"github.com/microcosm-cc/bluemonday"
|
||||
"golang.org/x/exp/slices"
|
||||
@@ -529,7 +527,3 @@ func clamp(val, low, high int) int {
|
||||
}
|
||||
return val
|
||||
}
|
||||
|
||||
func pointerHasher[V any](_ maphash.Seed, k *V) uint64 {
|
||||
return uint64(uintptr(unsafe.Pointer(k)))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user