mirror of
https://gitcode.com/gitea/gitea.git
synced 2025-06-24 13:58:57 +08:00
go1.16 (#14783)
This commit is contained in:
.drone.ymlDockerfileDockerfile.rootlessMakefile
docs
go.modgo.sumvendor
github.com
Microsoft/go-winio
.gitignoreLICENSEREADME.mdbackup.goea.gofile.gofileinfo.gogo.modgo.sumhvsock.gopipe.go
pkg/guid
privilege.goreparse.gosd.gosyscall.gozsyscall_windows.goblevesearch
bleve/v2
go.modgo.sum
index/scorch
builder.goempty.gointroducer.gomerge.gooptimize.gopersister.goregexp.goscorch.gosegment_plugin.gosnapshot_index.gosnapshot_index_dict.gosnapshot_index_tfr.gosnapshot_segment.gounadorned.go
search.goscorch_segment_api/v2
vellum
CONTRIBUTING.mdLICENSEREADME.mdautomaton.gobuilder.gocommon.godecoder_v1.goencoder_v1.goencoding.gofst.gofst_iterator.gogo.modgo.sum
levenshtein
merge_iterator.gopack.goregexp
registry.gotransducer.goutf8
vellum.govellum_mmap.govellum_nommap.gowriter.gozapx
v11
v12
v13
v14
v15
bradfitz/gomemcache/memcache
couchbase
go-couchbase
gomemcached
goutils/logging
vellum
editorconfig/editorconfig-core-go/v2
.editorconfig.golangci.yml.goreleaser.ymlCHANGELOG.mdMakefileREADME.mdcached_parser.goconfig.godefinition.goeditorconfig.gofnmatch.gogo.modgo.sumsimple_parser.go
gliderlabs/ssh
glycerine/go-unsnap-stream
go-asn1-ber/asn1-ber
go-chi/chi
go-openapi
analysis
errors
loads
spec
.golangci.ymlREADME.mdappveyor.ymldebug.goerrors.goexpander.gogo.modgo.sumnormalizer.gonormalizer_nonwindows.gonormalizer_windows.goresolver.goschema_loader.gosecurity_scheme.gounused.go
swag
validate
go-redis/redis/v8
go-swagger/go-swagger
cmd/swagger
generator
go-testfixtures/testfixtures/v3
golang/snappy
gorilla/mux
kevinburke/ssh_config
klauspost
compress/zstd
cpuid/v2
libdns/libdns
mailru/easyjson
markbates/goth
mholt/acmez
miekg/dns
.travis.ymlREADME.mdclient.godns.godnssec.godnssec_keygen.godnssec_keyscan.godnssec_privkey.godoc.goedns.gogenerate.gomsg.gomsg_helpers.gomsg_truncate.goscan.goscan_rr.goserve_mux.goserver.gosig0.gosvcb.gotsig.gotypes.goversion.gozduplicate.gozmsg.goztypes.go
minio
md5-simd
README.mdblock-generic.goblock16_amd64.sblock8_amd64.sblock_amd64.gogo.modgo.summd5-digest_amd64.gomd5-server_amd64.gomd5-util_amd64.gomd5.gomd5block_amd64.gomd5block_amd64.s
minio-go/v7
sha256-simd
.travis.ymlREADME.mdappveyor.ymlcpuid.gocpuid_amd64.gocpuid_arm.gocpuid_linux_arm64.gocpuid_other.gogo.modgo.sumsha256.gosha256blockAvx2_amd64.gosha256blockAvx2_amd64.ssha256blockAvx512_amd64.gosha256blockAvx_amd64.gosha256blockAvx_amd64.ssha256blockSha_amd64.gosha256blockSsse_amd64.gosha256blockSsse_amd64.ssha256block_amd64.gosha256block_arm64.gosha256block_other.go
mrjones/oauth
msteinert/pam
olekukonko/tablewriter
pierrec/lz4/v4
prometheus
common/model
procfs
Makefile.commonSECURITY.mdarp.gobuddyinfo.gocpuinfo.gocpuinfo_riscvx.gocrypto.gofixtures.ttarfscache.gogo.modgo.sum
internal/fs
loadavg.gomdstat.gomeminfo.gomountstats.gonet_conntrackstat.gonet_ip_socket.gonet_protocols.gonet_sockstat.gonet_softnet.gonet_tcp.gonet_udp.gonet_unix.goproc.goproc_cgroup.goproc_fdinfo.goproc_limits.goproc_ns.goproc_psi.goproc_stat.goschedstat.goslab.gostat.goxfrm.gozoneinfo.gorussross/blackfriday/v2
shurcooL/sanitized_anchor_name
spf13/afero
.travis.ymlREADME.mdafero.gobasepath.gocacheOnReadFs.gocopyOnWriteFs.gohttpFs.go
mem
memmap.goos.goreadonlyfs.goregexpfs.goulikunitz/xz
LICENSESECURITY.mdTODO.mdbits.gocrc.goformat.go
internal
lzma
bintree.gobitops.gobreader.gobuffer.gobytewriter.godecoder.godecoderdict.godirectcodec.godistcodec.goencoder.goencoderdict.gohashtable.goheader.goheader2.golengthcodec.goliteralcodec.gomatchalgorithm.gooperation.goprob.goproperties.gorangecodec.goreader.goreader2.gostate.gotreecodecs.gowriter.gowriter2.go
lzmafilter.gonone-check.goreader.gowriter.goxanzy/ssh-agent
go.mongodb.org/mongo-driver/bson/bsonrw
go.opentelemetry.io/otel
.gitignoreCHANGELOG.mdCODEOWNERSCONTRIBUTING.mdMakefileMakefile.protosREADME.mdRELEASING.md
codes
go.modgo.summetric
pre_release.shtrace.gotrace
version.gogo.uber.org
atomic
.codecov.yml.travis.ymlCHANGELOG.mdMakefileatomic.gobool.gobool_ext.godoc.goduration.goduration_ext.goerror.goerror_ext.gofloat64.gofloat64_ext.gogen.gogo.modgo.sumint32.goint64.gonocmp.gostring.gostring_ext.gouint32.gouint64.govalue.go
multierr
zap
golang.org/x
crypto
argon2
blake2b
chacha20
curve25519
ed25519
internal/subtle
poly1305
mod
net
context
idna
internal/socket
cmsghdr.gocmsghdr_bsd.gocmsghdr_linux_32bit.gocmsghdr_linux_64bit.gocmsghdr_solaris_64bit.gocmsghdr_stub.gocmsghdr_unix.goerror_unix.goiovec_32bit.goiovec_64bit.goiovec_solaris_64bit.goiovec_stub.gommsghdr_stub.gommsghdr_unix.gomsghdr_bsd.gomsghdr_bsdvar.gomsghdr_linux_32bit.gomsghdr_linux_64bit.gomsghdr_solaris_64bit.gomsghdr_stub.gomsghdr_zos_s390x.gonorace.gorace.gorawconn_mmsg.gorawconn_msg.gorawconn_nommsg.gorawconn_nomsg.gosys_bsd.gosys_const_unix.gosys_const_zos.gosys_linkname.gosys_linux.gosys_linux_riscv64.gosys_posix.gosys_stub.gosys_unix.gozsys_aix_ppc64.gozsys_linux_riscv64.go
ipv4
control_bsd.gocontrol_pktinfo.gocontrol_stub.gocontrol_unix.goicmp_stub.gopayload_cmsg.gopayload_nocmsg.gosockopt_posix.gosockopt_stub.gosys_aix.gosys_asmreq.gosys_asmreq_stub.gosys_asmreqn.gosys_asmreqn_stub.gosys_bpf.gosys_bpf_stub.gosys_bsd.gosys_ssmreq.gosys_ssmreq_stub.gosys_stub.gozsys_aix_ppc64.gozsys_linux_riscv64.go
ipv6
control_rfc2292_unix.gocontrol_rfc3542_unix.gocontrol_stub.gocontrol_unix.goicmp_bsd.goicmp_stub.gopayload_cmsg.gopayload_nocmsg.gosockopt_posix.gosockopt_stub.gosys_aix.gosys_asmreq.gosys_asmreq_stub.gosys_bpf.gosys_bpf_stub.gosys_bsd.gosys_ssmreq.gosys_ssmreq_stub.gosys_stub.gozsys_aix_ppc64.gozsys_linux_riscv64.go
oauth2
sys
cpu
cpu_aix.gocpu_gc_arm64.gocpu_gc_s390x.gocpu_gc_x86.gocpu_gccgo_arm64.gocpu_gccgo_s390x.gocpu_gccgo_x86.gocpu_linux.gocpu_linux_mips64x.gocpu_linux_noinit.gocpu_linux_ppc64x.gocpu_mips64x.gocpu_mipsx.gocpu_other_arm.gocpu_other_arm64.gocpu_other_mips64x.gocpu_ppc64x.gocpu_riscv64.gocpu_wasm.gocpu_x86.gosyscall_aix_gccgo.gosyscall_aix_ppc64_gc.go
unix
aliases.goasm_zos_s390x.scap_freebsd.goconstants.godev_aix_ppc.godev_aix_ppc64.godev_zos.godirent.goendian_big.goendian_little.goenv_unix.goepoll_zos.gofcntl.gofcntl_linux_32bit.gofdset.gofstatfs_zos.gogccgo.gogccgo_linux_amd64.goioctl.goioctl_zos.gomkerrors.shpagesize_unix.goptrace_darwin.goptrace_ios.gorace.gorace0.goreaddirent_getdents.goreaddirent_getdirentries.gosockcmsg_unix.gosockcmsg_unix_other.gostr.gosyscall.gosyscall_aix.gosyscall_aix_ppc.gosyscall_aix_ppc64.gosyscall_bsd.gosyscall_darwin.1_12.gosyscall_darwin.1_13.gosyscall_darwin.gosyscall_darwin_386.gosyscall_darwin_amd64.gosyscall_darwin_arm64.gosyscall_darwin_libSystem.gosyscall_dragonfly.gosyscall_dragonfly_amd64.gosyscall_freebsd.gosyscall_freebsd_386.gosyscall_freebsd_amd64.gosyscall_freebsd_arm.gosyscall_freebsd_arm64.gosyscall_illumos.gosyscall_linux.gosyscall_linux_386.gosyscall_linux_amd64.gosyscall_linux_amd64_gc.gosyscall_linux_arm.gosyscall_linux_arm64.gosyscall_linux_gc.gosyscall_linux_gc_386.gosyscall_linux_gc_arm.gosyscall_linux_gccgo_386.gosyscall_linux_gccgo_arm.gosyscall_linux_mips64x.gosyscall_linux_mipsx.gosyscall_linux_ppc64x.gosyscall_linux_riscv64.gosyscall_linux_s390x.gosyscall_linux_sparc64.gosyscall_netbsd.gosyscall_netbsd_386.gosyscall_netbsd_amd64.gosyscall_netbsd_arm.gosyscall_netbsd_arm64.gosyscall_openbsd.gosyscall_openbsd_386.gosyscall_openbsd_amd64.gosyscall_openbsd_arm.gosyscall_openbsd_arm64.gosyscall_solaris.gosyscall_solaris_amd64.gosyscall_unix.gosyscall_unix_gc.gosyscall_unix_gc_ppc64x.gosyscall_zos_s390x.gotimestruct.goxattr_bsd.gozerrors_aix_ppc.gozerrors_aix_ppc64.gozerrors_darwin_386.gozerrors_darwin_amd64.gozerrors_darwin_arm.gozerrors_darwin_arm64.gozerrors_dragonfly_amd64.gozerrors_freebsd_386.gozerrors_freebsd_amd64.gozerrors_freebsd_arm.gozerrors_freebsd_arm64.gozerrors_linux.gozerrors_linux_386.gozerrors_linux_amd64.gozerrors_linux_arm.gozerrors_linux_arm64.gozerrors_linux_mips.gozerrors_linux_mips64.gozerrors_linux_mips64le.gozerrors_linux_mipsle.gozerrors_linux_ppc64.gozerrors_linux_ppc64le.gozerrors_linux_riscv64.gozerrors_linux_s390x.gozerrors_linux_sparc64.gozerrors_netbsd_386.gozerrors_netbsd_amd64.gozerrors_netbsd_arm.gozerrors_netbsd_arm64.gozerrors_openbsd_386.gozerrors_openbsd_amd64.gozerrors_openbsd_arm.gozerrors_openbsd_arm64.gozerrors_openbsd_mips64.gozerrors_solaris_amd64.gozerrors_zos_s390x.gozptrace_armnn_linux.gozptrace_mipsnn_linux.gozptrace_mipsnnle_linux.gozptrace_x86_linux.gozsyscall_aix_ppc.gozsyscall_aix_ppc64.gozsyscall_aix_ppc64_gc.gozsyscall_aix_ppc64_gccgo.gozsyscall_darwin_386.1_13.gozsyscall_darwin_386.gozsyscall_darwin_amd64.1_13.gozsyscall_darwin_amd64.gozsyscall_darwin_arm.1_13.gozsyscall_darwin_arm.gozsyscall_darwin_arm64.1_13.gozsyscall_darwin_arm64.gozsyscall_dragonfly_amd64.gozsyscall_freebsd_386.gozsyscall_freebsd_amd64.gozsyscall_freebsd_arm.gozsyscall_freebsd_arm64.gozsyscall_illumos_amd64.gozsyscall_linux.gozsyscall_linux_386.gozsyscall_linux_amd64.gozsyscall_linux_arm.gozsyscall_linux_arm64.gozsyscall_linux_mips.gozsyscall_linux_mips64.gozsyscall_linux_mips64le.gozsyscall_linux_mipsle.gozsyscall_linux_ppc64.gozsyscall_linux_ppc64le.gozsyscall_linux_riscv64.gozsyscall_linux_s390x.gozsyscall_linux_sparc64.gozsyscall_netbsd_386.gozsyscall_netbsd_amd64.gozsyscall_netbsd_arm.gozsyscall_netbsd_arm64.gozsyscall_openbsd_386.gozsyscall_openbsd_amd64.gozsyscall_openbsd_arm.gozsyscall_openbsd_arm64.gozsyscall_openbsd_mips64.gozsyscall_solaris_amd64.gozsyscall_zos_s390x.gozsysctl_openbsd_386.gozsysctl_openbsd_amd64.gozsysctl_openbsd_arm.gozsysctl_openbsd_arm64.gozsysctl_openbsd_mips64.gozsysnum_darwin_386.gozsysnum_darwin_amd64.gozsysnum_darwin_arm.gozsysnum_darwin_arm64.gozsysnum_dragonfly_amd64.gozsysnum_freebsd_386.gozsysnum_freebsd_amd64.gozsysnum_freebsd_arm.gozsysnum_freebsd_arm64.gozsysnum_linux_386.gozsysnum_linux_amd64.gozsysnum_linux_arm.gozsysnum_linux_arm64.gozsysnum_linux_mips.gozsysnum_linux_mips64.gozsysnum_linux_mips64le.gozsysnum_linux_mipsle.gozsysnum_linux_ppc64.gozsysnum_linux_ppc64le.gozsysnum_linux_riscv64.gozsysnum_linux_s390x.gozsysnum_linux_sparc64.gozsysnum_netbsd_386.gozsysnum_netbsd_amd64.gozsysnum_netbsd_arm.gozsysnum_netbsd_arm64.gozsysnum_openbsd_386.gozsysnum_openbsd_amd64.gozsysnum_openbsd_arm.gozsysnum_openbsd_arm64.gozsysnum_openbsd_mips64.gozsysnum_zos_s390x.goztypes_aix_ppc.goztypes_aix_ppc64.goztypes_darwin_386.goztypes_darwin_amd64.goztypes_darwin_arm.goztypes_darwin_arm64.goztypes_dragonfly_amd64.goztypes_freebsd_386.goztypes_freebsd_amd64.goztypes_freebsd_arm.goztypes_freebsd_arm64.goztypes_linux.goztypes_linux_386.goztypes_linux_amd64.goztypes_linux_arm.goztypes_linux_arm64.goztypes_linux_mips.goztypes_linux_mips64.goztypes_linux_mips64le.goztypes_linux_mipsle.goztypes_linux_ppc64.goztypes_linux_ppc64le.goztypes_linux_riscv64.goztypes_linux_s390x.goztypes_linux_sparc64.goztypes_netbsd_386.goztypes_netbsd_amd64.goztypes_netbsd_arm.goztypes_netbsd_arm64.goztypes_openbsd_386.goztypes_openbsd_amd64.goztypes_openbsd_arm.goztypes_openbsd_arm64.goztypes_openbsd_mips64.goztypes_solaris_amd64.goztypes_zos_s390x.go
windows
gopkg.in/yaml.v3
modules.txt
78
vendor/github.com/go-redis/redis/v8/internal/hscan/hscan.go
generated
vendored
78
vendor/github.com/go-redis/redis/v8/internal/hscan/hscan.go
generated
vendored
@ -15,17 +15,17 @@ var (
|
||||
decoders = []decoderFunc{
|
||||
reflect.Bool: decodeBool,
|
||||
reflect.Int: decodeInt,
|
||||
reflect.Int8: decodeInt,
|
||||
reflect.Int16: decodeInt,
|
||||
reflect.Int32: decodeInt,
|
||||
reflect.Int64: decodeInt,
|
||||
reflect.Int8: decodeInt8,
|
||||
reflect.Int16: decodeInt16,
|
||||
reflect.Int32: decodeInt32,
|
||||
reflect.Int64: decodeInt64,
|
||||
reflect.Uint: decodeUint,
|
||||
reflect.Uint8: decodeUint,
|
||||
reflect.Uint16: decodeUint,
|
||||
reflect.Uint32: decodeUint,
|
||||
reflect.Uint64: decodeUint,
|
||||
reflect.Float32: decodeFloat,
|
||||
reflect.Float64: decodeFloat,
|
||||
reflect.Uint8: decodeUint8,
|
||||
reflect.Uint16: decodeUint16,
|
||||
reflect.Uint32: decodeUint32,
|
||||
reflect.Uint64: decodeUint64,
|
||||
reflect.Float32: decodeFloat32,
|
||||
reflect.Float64: decodeFloat64,
|
||||
reflect.Complex64: decodeUnsupported,
|
||||
reflect.Complex128: decodeUnsupported,
|
||||
reflect.Array: decodeUnsupported,
|
||||
@ -106,8 +106,28 @@ func decodeBool(f reflect.Value, s string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func decodeInt8(f reflect.Value, s string) error {
|
||||
return decodeNumber(f, s, 8)
|
||||
}
|
||||
|
||||
func decodeInt16(f reflect.Value, s string) error {
|
||||
return decodeNumber(f, s, 16)
|
||||
}
|
||||
|
||||
func decodeInt32(f reflect.Value, s string) error {
|
||||
return decodeNumber(f, s, 32)
|
||||
}
|
||||
|
||||
func decodeInt64(f reflect.Value, s string) error {
|
||||
return decodeNumber(f, s, 64)
|
||||
}
|
||||
|
||||
func decodeInt(f reflect.Value, s string) error {
|
||||
v, err := strconv.ParseInt(s, 10, 0)
|
||||
return decodeNumber(f, s, 0)
|
||||
}
|
||||
|
||||
func decodeNumber(f reflect.Value, s string, bitSize int) error {
|
||||
v, err := strconv.ParseInt(s, 10, bitSize)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -115,8 +135,28 @@ func decodeInt(f reflect.Value, s string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func decodeUint8(f reflect.Value, s string) error {
|
||||
return decodeUnsignedNumber(f, s, 8)
|
||||
}
|
||||
|
||||
func decodeUint16(f reflect.Value, s string) error {
|
||||
return decodeUnsignedNumber(f, s, 16)
|
||||
}
|
||||
|
||||
func decodeUint32(f reflect.Value, s string) error {
|
||||
return decodeUnsignedNumber(f, s, 32)
|
||||
}
|
||||
|
||||
func decodeUint64(f reflect.Value, s string) error {
|
||||
return decodeUnsignedNumber(f, s, 64)
|
||||
}
|
||||
|
||||
func decodeUint(f reflect.Value, s string) error {
|
||||
v, err := strconv.ParseUint(s, 10, 0)
|
||||
return decodeUnsignedNumber(f, s, 0)
|
||||
}
|
||||
|
||||
func decodeUnsignedNumber(f reflect.Value, s string, bitSize int) error {
|
||||
v, err := strconv.ParseUint(s, 10, bitSize)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
@ -124,8 +164,18 @@ func decodeUint(f reflect.Value, s string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func decodeFloat(f reflect.Value, s string) error {
|
||||
v, err := strconv.ParseFloat(s, 0)
|
||||
func decodeFloat32(f reflect.Value, s string) error {
|
||||
v, err := strconv.ParseFloat(s, 32)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
f.SetFloat(v)
|
||||
return nil
|
||||
}
|
||||
|
||||
// although the default is float64, but we better define it.
|
||||
func decodeFloat64(f reflect.Value, s string) error {
|
||||
v, err := strconv.ParseFloat(s, 64)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
8
vendor/github.com/go-redis/redis/v8/internal/hscan/structmap.go
generated
vendored
8
vendor/github.com/go-redis/redis/v8/internal/hscan/structmap.go
generated
vendored
@ -1,6 +1,7 @@
|
||||
package hscan
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"reflect"
|
||||
"strings"
|
||||
"sync"
|
||||
@ -83,5 +84,10 @@ func (s StructValue) Scan(key string, value string) error {
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
return field.fn(s.value.Field(field.index), value)
|
||||
if err := field.fn(s.value.Field(field.index), value); err != nil {
|
||||
t := s.value.Type()
|
||||
return fmt.Errorf("cannot scan redis.result %s into struct field %s.%s of type %s, error-%s",
|
||||
value, t.Name(), t.Field(field.index).Name, t.Field(field.index).Type, err.Error())
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
4
vendor/github.com/go-redis/redis/v8/internal/instruments.go
generated
vendored
4
vendor/github.com/go-redis/redis/v8/internal/instruments.go
generated
vendored
@ -3,8 +3,8 @@ package internal
|
||||
import (
|
||||
"context"
|
||||
|
||||
"go.opentelemetry.io/otel"
|
||||
"go.opentelemetry.io/otel/metric"
|
||||
"go.opentelemetry.io/otel/metric/global"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -21,7 +21,7 @@ func init() {
|
||||
}
|
||||
}()
|
||||
|
||||
meter := metric.Must(otel.Meter("github.com/go-redis/redis"))
|
||||
meter := metric.Must(global.Meter("github.com/go-redis/redis"))
|
||||
|
||||
WritesCounter = meter.NewInt64Counter("redis.writes",
|
||||
metric.WithDescription("the number of writes initiated"),
|
||||
|
5
vendor/github.com/go-redis/redis/v8/internal/rand/rand.go
generated
vendored
5
vendor/github.com/go-redis/redis/v8/internal/rand/rand.go
generated
vendored
@ -43,3 +43,8 @@ func (s *source) Seed(seed int64) {
|
||||
s.src.Seed(seed)
|
||||
s.mu.Unlock()
|
||||
}
|
||||
|
||||
// Shuffle pseudo-randomizes the order of elements.
|
||||
// n is the number of elements.
|
||||
// swap swaps the elements with indexes i and j.
|
||||
func Shuffle(n int, swap func(i, j int)) { pseudo.Shuffle(n, swap) }
|
||||
|
Reference in New Issue
Block a user