==> Creating chroot for [extra-staging-with-build-support] (i486)... -> Deleting chroot copy 'build'... -> Deleting chroot copy 'root'... ==> Creating install root at /var/lib/archbuild/extra-staging-with-build-support-i486/root ==> Installing packages to /var/lib/archbuild/extra-staging-with-build-support-i486/root :: Synchronizing package databases... build-support-manual downloading... build-support downloading... core-staging downloading... extra-staging downloading... core-testing downloading... core downloading... extra-testing downloading... extra downloading... resolving dependencies... :: There are 2 providers available for sh: :: Repository core-staging 1) bash :: Repository core 2) bash Enter a number (default=1): looking for conflicting packages... warning: dependency cycle detected: warning: systemd-libs will be installed before its libcap dependency Packages (130) acl-2.3.2-1.0 archlinux32-keyring-20241114-1.2 argon2-20190702-6.0 attr-2.5.2-1.0 audit-4.0.2-2.0 autoconf-2.72-1.0 automake-1.17-1.0 bash-5.2.037-1.0 binutils-2.43+r4+g7999dae6961-1.1 bison-3.8.2-8.1 brotli-1.1.0-2.2 bzip2-1.0.8-6.0 ca-certificates-20240618-1.0 ca-certificates-mozilla-3.85-1.1 ca-certificates-utils-20240618-1.0 coreutils-9.5-2.2 cryptsetup-2.7.5-1.0 curl-8.11.1-3.0 db5.3-5.3.28-5.0 dbus-1.14.10-2.1 dbus-broker-36-4.0 dbus-broker-units-36-4.0 dbus-units-36-4.0 debugedit-5.1-1.0 device-mapper-2.03.29-1.0 diffutils-3.10-1.0 e2fsprogs-1.47.1-4.0 expat-2.6.4-1.0 fakeroot-1.36-1.0 file-5.46-2.0 filesystem-2024.11.21-1.0 findutils-4.10.0-2.0 flex-2.6.4-5.0 gawk-5.3.1-1.0 gc-8.2.8-2.0 gcc-14.2.1+r134+gab884fffe3fc-1.0 gcc-libs-14.2.1+r134+gab884fffe3fc-1.0 gdbm-1.24-1.0 gettext-0.22.5-2.0 glib2-2.78.4-1.0 glibc-2.40+r16+gaa533d58ff-2.1 gmp-6.3.0-2.0 gnupg-2.4.7-1.0 gnutls-3.8.8-1.0 gpgme-1.23.2-6.3 grep-3.11-1.1 groff-1.23.0-7.0 guile-3.0.9-1.1 gzip-1.13-4.0 hwdata-0.390-1.0 iana-etc-20241206-1.0 icu-75.1-1.0 jansson-2.14-4.0 json-c-0.18-1.0 kbd-2.7-1.0 keyutils-1.6.3-3.0 kmod-33-3.0 krb5-1.21.3-1.0 libarchive-3.7.5-1.0 libassuan-3.0.0-1.0 libcap-2.71-1.0 libcap-ng-0.8.5-2.1 libelf-0.192-2.0 libevent-2.1.12-4.1 libffi-3.4.6-1.0 libgcrypt-1.11.0-2.1 libgpg-error-1.51-1.0 libidn2-2.3.7-1.0 libisl-0.27-1.0 libksba-1.6.6-1.0 libldap-2.6.9-1.0 libmpc-1.3.1-2.0 libnghttp2-1.64.0-1.0 libnghttp3-1.6.0-1.0 libnsl-2.0.1-1.0 libp11-kit-0.25.3-1.0 libpsl-0.21.5-2.1 libsasl-2.1.28-5.0 libseccomp-2.5.5-3.0 libsecret-0.20.5-2.0 libssh2-1.11.0-1.0 libsysprof-capture-3.48.0-4.0 libtasn1-4.19.0-2.0 libtirpc-1.3.6-1.0 libtool-2.5.4+r1+gbaa1fe41-1.0 libunistring-1.2-1.0 libusb-1.0.27-1.0 libverto-0.3.2-5.0 libxcrypt-4.4.36-2.0 libxml2-2.13.5-1.0 linux-api-headers-6.10-1.1 lmdb-0.9.33-1.0 lz4-1:1.10.0-2.0 m4-1.4.19-3.0 make-4.4.1-2.0 mpfr-4.2.1-4.1 ncurses-6.5-3.0 nettle-3.10-1.1 npth-1.8-1.0 openssl-3.4.0-1.0 p11-kit-0.25.3-1.0 pacman-7.0.0.r6.gc685ae6-1.0 pacman-mirrorlist-20241114-1.0 pam-1.6.1-3.0 pambase-20230918-2.0 patch-2.7.6-10.0 pcre2-10.44-1.1 perl-5.40.0-1.0 pinentry-1.3.1-5.5 pkgconf-2.3.0-1.0 popt-1.19-2.0 readline-8.2.013-1.0 sed-4.9-3.0 shadow-4.16.0-1.0 sqlite-3.47.2-1.0 sudo-1.9.16.p2-1.0 systemd-256.6-1.0 systemd-libs-256.6-1.0 tar-1.35-2.0 texinfo-7.1.1-1.0 tpm2-tss-4.0.1-1.0 tzdata-2024b-2.0 util-linux-2.40.2-1.1 util-linux-libs-2.40.2-1.1 which-2.21-6.2 xxhash-0.8.2-1.0 xz-5.6.2-1.2 zlib-1:1.3.1-2.0 zstd-1.5.6-1.2 base-devel-1-2.0 Total Installed Size: 855.70 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing archlinux32-keyring... call to execv failed (No such file or directory) error: command failed to execute correctly installing linux-api-headers... installing tzdata... Optional dependencies for tzdata bash: for tzselect [pending] glibc: for zdump, zic [pending] installing iana-etc... installing filesystem... installing glibc... Optional dependencies for glibc gd: for memusagestat perl: for mtrace [pending] installing gcc-libs... installing ncurses... Optional dependencies for ncurses bash: for ncursesw6-config [pending] installing readline... installing bash... Optional dependencies for bash bash-completion: for tab completion installing gmp... installing mpfr... installing gawk... installing m4... installing diffutils... installing gdbm... installing db5.3... installing libxcrypt... installing perl... installing autoconf... installing automake... installing jansson... installing bzip2... installing acl... installing attr... installing zlib... installing sqlite... installing util-linux-libs... Optional dependencies for util-linux-libs python: python bindings to libmount installing e2fsprogs... Optional dependencies for e2fsprogs lvm2: for e2scrub util-linux: for e2scrub [pending] smtp-forwarder: for e2scrub_fail script installing keyutils... installing openssl... Optional dependencies for openssl ca-certificates [pending] perl [installed] installing libsasl... installing libldap... installing libevent... Optional dependencies for libevent python: event_rpcgen.py installing libverto... installing lmdb... installing krb5... installing libtirpc... installing pambase... installing libcap-ng... installing audit... Optional dependencies for audit libldap: for audispd-zos-remote [installed] sh: for augenrules [installed] installing libnsl... installing libgpg-error... installing libgcrypt... installing lz4... installing xz... installing zstd... installing systemd-libs... installing pam... installing libcap... installing coreutils... installing findutils... installing libffi... installing libtasn1... installing libp11-kit... installing p11-kit... installing ca-certificates-utils... installing ca-certificates-mozilla... installing ca-certificates... installing brotli... installing libunistring... installing libidn2... installing libnghttp2... installing libnghttp3... installing libpsl... installing libssh2... installing curl... installing json-c... installing libelf... installing binutils... Optional dependencies for binutils debuginfod: for debuginfod server/client functionality installing icu... installing libxml2... Optional dependencies for libxml2 python: Python bindings installing gettext... Optional dependencies for gettext git: for autopoint infrastructure updates installing bison... installing xxhash... installing debugedit... installing sed... installing libseccomp... installing file... installing shadow... installing util-linux... Optional dependencies for util-linux words: default dictionary for look installing fakeroot... installing flex... installing libmpc... installing libisl... installing gcc... Optional dependencies for gcc gcc-libs: for generating code for 32-bit ABI [installed] installing pcre2... Optional dependencies for pcre2 sh: for pcre2-config [installed] installing grep... installing groff... Optional dependencies for groff netpbm: for use together with man -H command interaction in browsers psutils: for use together with man -H command interaction in browsers libxaw: for gxditview perl-file-homedir: for use with glilypond installing gzip... Optional dependencies for gzip less: zless support util-linux: zmore support [installed] diffutils: zdiff/zcmp support [installed] installing tar... installing libtool... installing gc... installing guile... installing make... installing nettle... installing gnutls... Optional dependencies for gnutls tpm2-tss: support for TPM2 wrapped keys [pending] installing libksba... installing libusb... installing libassuan... installing libsysprof-capture... installing glib2... Optional dependencies for glib2 gvfs: most gio functionality libelf: gresource inspection tool [installed] python: gdbus-codegen, glib-genmarshal, glib-mkenums, gtester-report installing tpm2-tss... installing libsecret... Optional dependencies for libsecret org.freedesktop.secrets: secret storage backend installing pinentry... Optional dependencies for pinentry gcr: GNOME backend gtk3: GTK backend qt5-x11extras: Qt5 backend kwayland5: Qt5 backend kguiaddons: Qt6 backend kwindowsystem: Qt6 backend installing npth... installing gnupg... Optional dependencies for gnupg pcsclite: for using scdaemon not with the gnupg internal card driver installing gpgme... installing libarchive... installing pacman-mirrorlist... installing device-mapper... installing popt... installing argon2... installing cryptsetup... installing expat... installing dbus... installing dbus-broker... installing dbus-broker-units... installing dbus-units... installing kbd... installing kmod... installing hwdata... installing systemd... Initializing machine ID from random generator. Creating group 'sys' with GID 3. Creating group 'mem' with GID 8. Creating group 'ftp' with GID 11. Creating group 'mail' with GID 12. Creating group 'log' with GID 19. Creating group 'smmsp' with GID 25. Creating group 'proc' with GID 26. Creating group 'games' with GID 50. Creating group 'lock' with GID 54. Creating group 'network' with GID 90. Creating group 'floppy' with GID 94. Creating group 'scanner' with GID 96. Creating group 'power' with GID 98. Creating group 'nobody' with GID 65534. Creating group 'adm' with GID 999. Creating group 'wheel' with GID 998. Creating group 'utmp' with GID 997. Creating group 'audio' with GID 996. Creating group 'disk' with GID 995. Creating group 'input' with GID 994. Creating group 'kmem' with GID 993. Creating group 'kvm' with GID 992. Creating group 'lp' with GID 991. Creating group 'optical' with GID 990. Creating group 'render' with GID 989. Creating group 'sgx' with GID 988. Creating group 'storage' with GID 987. Creating group 'tty' with GID 5. Creating group 'uucp' with GID 986. Creating group 'video' with GID 985. Creating group 'users' with GID 984. Creating group 'groups' with GID 983. Creating group 'systemd-journal' with GID 982. Creating group 'rfkill' with GID 981. Creating group 'bin' with GID 1. Creating user 'bin' (n/a) with UID 1 and GID 1. Creating group 'daemon' with GID 2. Creating user 'daemon' (n/a) with UID 2 and GID 2. Creating user 'mail' (n/a) with UID 8 and GID 12. Creating user 'ftp' (n/a) with UID 14 and GID 11. Creating group 'http' with GID 33. Creating user 'http' (n/a) with UID 33 and GID 33. Creating user 'nobody' (Kernel Overflow User) with UID 65534 and GID 65534. Creating group 'dbus' with GID 81. Creating user 'dbus' (System Message Bus) with UID 81 and GID 81. Creating group 'systemd-coredump' with GID 980. Creating user 'systemd-coredump' (systemd Core Dumper) with UID 980 and GID 980. Creating group 'systemd-network' with GID 979. Creating user 'systemd-network' (systemd Network Management) with UID 979 and GID 979. Creating group 'systemd-oom' with GID 978. Creating user 'systemd-oom' (systemd Userspace OOM Killer) with UID 978 and GID 978. Creating group 'systemd-journal-remote' with GID 977. Creating user 'systemd-journal-remote' (systemd Journal Remote) with UID 977 and GID 977. Creating group 'systemd-resolve' with GID 976. Creating user 'systemd-resolve' (systemd Resolver) with UID 976 and GID 976. Creating group 'systemd-timesync' with GID 975. Creating user 'systemd-timesync' (systemd Time Synchronization) with UID 975 and GID 975. Creating group 'tss' with GID 974. Creating user 'tss' (tss user for tpm2) with UID 974 and GID 974. Creating group 'uuidd' with GID 68. Creating user 'uuidd' (n/a) with UID 68 and GID 68. Created symlink '/etc/systemd/system/getty.target.wants/getty@tty1.service' → '/usr/lib/systemd/system/getty@.service'. Created symlink '/etc/systemd/system/multi-user.target.wants/remote-fs.target' → '/usr/lib/systemd/system/remote-fs.target'. Created symlink '/etc/systemd/system/sockets.target.wants/systemd-userdbd.socket' → '/usr/lib/systemd/system/systemd-userdbd.socket'. installing pacman... Optional dependencies for pacman base-devel: required to use makepkg [pending] perl-locale-gettext: translation support in makepkg-template installing patch... Optional dependencies for patch ed: for patch -e functionality installing pkgconf... installing sudo... installing texinfo... Optional dependencies for texinfo perl-archive-zip: EPUB file output via texi2any installing which... installing base-devel... :: Running post-transaction hooks... ( 1/13) Creating system user accounts... Creating group 'alpm' with GID 973. Creating user 'alpm' (Arch Linux Package Management) with UID 973 and GID 973. ( 2/13) Updating journal message catalog... ( 3/13) Reloading system manager configuration... Skipped: Running in chroot. ( 4/13) Reloading user manager configuration... Skipped: Running in chroot. ( 5/13) Updating udev hardware database... ( 6/13) Applying kernel sysctl settings... Skipped: Running in chroot. ( 7/13) Creating temporary files... ( 8/13) Reloading device manager configuration... Skipped: Running in chroot. ( 9/13) Arming ConditionNeedsUpdate... (10/13) Rebuilding certificate stores... (11/13) Reloading system bus configuration... Skipped: Running in chroot. (12/13) Warn about old perl modules (13/13) Updating the info directory file... Generating locales... C.UTF-8... done en_US.UTF-8... done de_DE.UTF-8... done Generation complete. ==> Building in chroot for [extra-staging-with-build-support] (i486)... ==> Synchronizing chroot copy [/var/lib/archbuild/extra-staging-with-build-support-i486/root] -> [build]...done ==> Making package: gitlab-pages 17.7.0-1.0 (Wed Dec 18 11:31:47 2024) ==> Retrieving sources... -> Found gitlab-pages-v17.7.0.tar.bz2 -> Found gitlab-pages.service -> Found gitlab-pages.env ==> Validating source files with sha256sums... gitlab-pages-v17.7.0.tar.bz2 ... Passed gitlab-pages.service ... Passed gitlab-pages.env ... Passed gpg: Warning: using insecure memory! ==> Appending keys from archlinux32.gpg... gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! gpg: Warning: using insecure memory! ==> Updating trust database... gpg: Warning: using insecure memory! gpg: next trustdb check due at 2025-01-01 ==> Making package: gitlab-pages 17.7.0-1.0 (Wed Dec 18 11:32:11 2024) ==> Checking runtime dependencies... ==> Checking buildtime dependencies... ==> Installing missing dependencies... :: There are 2 providers available for go: :: Repository core-staging 1) gcc-go :: Repository core 2) gcc-go Enter a number (default=1): resolving dependencies... looking for conflicting packages... Packages (1) gcc-go-14.2.1+r134+gab884fffe3fc-1.0 Total Installed Size: 105.99 MiB :: Proceed with installation? [Y/n] checking keyring... checking package integrity... loading package files... checking for file conflicts... :: Processing package changes... installing gcc-go... :: Running post-transaction hooks... (1/2) Arming ConditionNeedsUpdate... (2/2) Updating the info directory file... ==> Retrieving sources... -> Found gitlab-pages-v17.7.0.tar.bz2 -> Found gitlab-pages.service -> Found gitlab-pages.env ==> WARNING: Skipping all source file integrity checks. ==> Extracting sources... -> Extracting gitlab-pages-v17.7.0.tar.bz2 with bsdtar ==> Starting prepare()... ==> Starting build()... go: downloading github.com/gorilla/handlers v1.5.2 go: downloading github.com/hashicorp/go-multierror v1.1.1 go: downloading github.com/pires/go-proxyproto v0.8.0 go: downloading github.com/rs/cors v1.11.1 go: downloading github.com/sirupsen/logrus v1.9.3 go: downloading gitlab.com/gitlab-org/go-mimedb v1.52.0 go: downloading gitlab.com/gitlab-org/labkit v1.21.2 go: downloading go.uber.org/automaxprocs v1.6.0 go: downloading golang.org/x/sync v0.10.0 go: downloading github.com/felixge/httpsnoop v1.0.3 go: downloading github.com/hashicorp/errwrap v1.0.0 go: downloading golang.org/x/sys v0.28.0 go: downloading github.com/golang-jwt/jwt/v5 v5.2.1 go: downloading github.com/gorilla/securecookie v1.1.2 go: downloading github.com/gorilla/sessions v1.3.0 go: downloading golang.org/x/crypto v0.30.0 go: downloading github.com/3th1nk/cidr v0.2.0 go: downloading github.com/namsral/flag v1.7.4-pre go: downloading github.com/prometheus/client_golang v1.20.5 go: downloading github.com/tj/go-redirects v0.0.0-20200911105812-fd1ba1020b37 go: downloading github.com/oklog/ulid/v2 v2.0.2 go: downloading github.com/sebest/xff v0.0.0-20210106013422-671bd2870b3a go: downloading github.com/getsentry/sentry-go v0.13.0 go: downloading gitlab.com/gitlab-org/go/reopen v1.0.0 go: downloading golang.org/x/time v0.8.0 go: downloading github.com/beorn7/perks v1.0.1 go: downloading github.com/cespare/xxhash/v2 v2.3.0 go: downloading github.com/prometheus/client_model v0.6.1 go: downloading github.com/prometheus/common v0.55.0 go: downloading github.com/prometheus/procfs v0.15.1 go: downloading google.golang.org/protobuf v1.34.2 go: downloading github.com/pkg/errors v0.9.1 go: downloading gitlab.com/feistel/go-contentencoding v1.0.0 go: downloading github.com/patrickmn/go-cache v2.1.0+incompatible go: downloading github.com/klauspost/compress v1.17.9 go: downloading github.com/karlseguin/ccache/v3 v3.0.5 go: downloading github.com/munnerz/goautoneg v0.0.0-20191010083416-a7dc8b61c822 go build: when using gccgo toolchain, please pass linker flags using -gccgoflags, not -ldflags # github.com/prometheus/common/model ../pkg/mod/github.com/prometheus/common@v0.55.0/model/metric.go:364:47: error: reference to undefined identifier ‘strings.CutPrefix’ 364 | escapedName, found := strings.CutPrefix(name, "U__") | ^ note: module requires Go 1.20 # github.com/golang-jwt/jwt/v5 ../pkg/mod/github.com/golang-jwt/jwt/v5@v5.2.1/token.go:20:9: error: expected signature or type name 20 | crypto.PublicKey | []uint8 | ^ # github.com/karlseguin/ccache/v3 ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:9:15: error: expected ‘]’ 9 | type bucket[T any] struct { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:11:9: error: expected declaration 11 | lookup map[string]*Item[T] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:12:1: error: expected declaration 12 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:14:16: error: expected ‘)’ 14 | func (b *bucket[T]) itemCount() int { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:14:16: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:14:16: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:16:9: error: expected declaration 16 | defer b.RUnlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:17:9: error: expected declaration 17 | return len(b.lookup) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:18:1: error: expected declaration 18 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:20:16: error: expected ‘)’ 20 | func (b *bucket[T]) forEachFunc(matches func(key string, item *Item[T]) bool) bool { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:20:16: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:20:16: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:22:9: error: expected declaration 22 | b.RLock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:23:9: error: expected declaration 23 | defer b.RUnlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:24:9: error: expected declaration 24 | for key, item := range lookup { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:27:17: error: expected declaration 27 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:28:9: error: expected declaration 28 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:29:9: error: expected declaration 29 | return true | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:30:1: error: expected declaration 30 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:32:16: error: expected ‘)’ 32 | func (b *bucket[T]) get(key string) *Item[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:32:16: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:32:16: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:34:9: error: expected declaration 34 | defer b.RUnlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:35:9: error: expected declaration 35 | return b.lookup[key] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:36:1: error: expected declaration 36 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:38:16: error: expected ‘)’ 38 | func (b *bucket[T]) setnx(key string, value T, duration time.Duration, track bool) *Item[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:38:16: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:38:16: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:40:9: error: expected declaration 40 | item := b.lookup[key] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:41:9: error: expected declaration 41 | b.RUnlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:42:9: error: expected declaration 42 | if item != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:44:9: error: expected declaration 44 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:46:9: error: expected declaration 46 | expires := time.Now().Add(duration).UnixNano() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:47:9: error: expected declaration 47 | newItem := newItem(key, value, expires, track) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:49:9: error: expected declaration 49 | b.Lock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:50:9: error: expected declaration 50 | defer b.Unlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:53:9: error: expected declaration 53 | item = b.lookup[key] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:54:9: error: expected declaration 54 | if item != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:56:9: error: expected declaration 56 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:58:9: error: expected declaration 58 | b.lookup[key] = newItem | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:59:9: error: expected declaration 59 | return newItem | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:60:1: error: expected declaration 60 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:62:16: error: expected ‘)’ 62 | func (b *bucket[T]) set(key string, value T, duration time.Duration, track bool) (*Item[T], *Item[T]) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:62:16: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:62:16: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:64:9: error: expected declaration 64 | item := newItem(key, value, expires, track) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:65:9: error: expected declaration 65 | b.Lock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:66:9: error: expected declaration 66 | existing := b.lookup[key] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:67:9: error: expected declaration 67 | b.lookup[key] = item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:68:9: error: expected declaration 68 | b.Unlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:69:9: error: expected declaration 69 | return item, existing | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:70:1: error: expected declaration 70 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:72:16: error: expected ‘)’ 72 | func (b *bucket[T]) delete(key string) *Item[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:72:16: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:72:16: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:74:9: error: expected declaration 74 | item := b.lookup[key] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:75:9: error: expected declaration 75 | delete(b.lookup, key) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:76:9: error: expected declaration 76 | b.Unlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:77:9: error: expected declaration 77 | return item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:78:1: error: expected declaration 78 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:93:16: error: expected ‘)’ 93 | func (b *bucket[T]) deleteFunc(matches func(key string, item *Item[T]) bool, deletables chan *Item[T]) int { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:93:16: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:93:16: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:95:9: error: expected declaration 95 | items := make([]*Item[T], 0) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:97:9: error: expected declaration 97 | b.RLock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:98:9: error: expected declaration 98 | for key, item := range lookup { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:101:25: error: expected declaration 101 | items = append(items, item) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:102:17: error: expected declaration 102 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:103:9: error: expected declaration 103 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:104:9: error: expected declaration 104 | b.RUnlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:106:9: error: expected declaration 106 | if len(items) == 0 { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:109:9: error: expected declaration 109 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:111:9: error: expected declaration 111 | b.Lock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:112:9: error: expected declaration 112 | for _, item := range items { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:114:9: error: expected declaration 114 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:115:9: error: expected declaration 115 | b.Unlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:116:9: error: expected declaration 116 | return len(items) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:117:1: error: expected declaration 117 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:119:16: error: expected ‘)’ 119 | func (b *bucket[T]) deletePrefix(prefix string, deletables chan *Item[T]) int { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:119:16: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:119:16: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:122:9: error: expected declaration 122 | }, deletables) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:123:1: error: expected declaration 123 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:126:16: error: expected ‘)’ 126 | func (b *bucket[T]) clear() { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:126:16: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:126:16: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:129:9: error: expected declaration 129 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:130:9: error: expected declaration 130 | b.lookup = make(map[string]*Item[T]) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/bucket.go:131:1: error: expected declaration 131 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:37:14: error: expected ‘]’ 37 | type Cache[T any] struct { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:39:9: error: expected declaration 39 | control | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:40:9: error: expected declaration 40 | list *List[*Item[T]] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:41:9: error: expected declaration 41 | size int64 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:42:9: error: expected declaration 42 | buckets []*bucket[T] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:43:9: error: expected declaration 43 | bucketMask uint32 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:44:9: error: expected declaration 44 | deletables chan *Item[T] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:45:9: error: expected declaration 45 | promotables chan *Item[T] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:46:1: error: expected declaration 46 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:50:9: error: expected ‘(’ 50 | func New[T any](config *Configuration[T]) *Cache[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:50:12: error: expected ‘]’ 50 | func New[T any](config *Configuration[T]) *Cache[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:50:12: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:60:9: error: expected declaration 60 | for i := 0; i < config.buckets; i++ { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:60:21: error: expected declaration 60 | for i := 0; i < config.buckets; i++ { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:60:41: error: expected declaration 60 | for i := 0; i < config.buckets; i++ { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:64:9: error: expected declaration 64 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:65:9: error: expected declaration 65 | go c.worker() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:66:9: error: expected declaration 66 | return c | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:67:1: error: expected declaration 67 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:69:15: error: expected ‘)’ 69 | func (c *Cache[T]) ItemCount() int { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:69:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:69:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:71:9: error: expected declaration 71 | for _, b := range c.buckets { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:73:9: error: expected declaration 73 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:74:9: error: expected declaration 74 | return count | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:75:1: error: expected declaration 75 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:77:15: error: expected ‘)’ 77 | func (c *Cache[T]) DeletePrefix(prefix string) int { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:77:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:77:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:79:9: error: expected declaration 79 | for _, b := range c.buckets { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:81:9: error: expected declaration 81 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:82:9: error: expected declaration 82 | return count | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:83:1: error: expected declaration 83 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:86:15: error: expected ‘)’ 86 | func (c *Cache[T]) DeleteFunc(matches func(key string, item *Item[T]) bool) int { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:86:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:86:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:88:9: error: expected declaration 88 | for _, b := range c.buckets { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:90:9: error: expected declaration 90 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:91:9: error: expected declaration 91 | return count | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:92:1: error: expected declaration 92 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:94:15: error: expected ‘)’ 94 | func (c *Cache[T]) ForEachFunc(matches func(key string, item *Item[T]) bool) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:94:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:94:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:98:17: error: expected declaration 98 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:99:9: error: expected declaration 99 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:100:1: error: expected declaration 100 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:106:15: error: expected ‘)’ 106 | func (c *Cache[T]) Get(key string) *Item[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:106:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:106:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:108:9: error: expected declaration 108 | if item == nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:110:9: error: expected declaration 110 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:111:9: error: expected declaration 111 | if !item.Expired() { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:116:9: error: expected declaration 116 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:117:9: error: expected declaration 117 | return item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:118:1: error: expected declaration 118 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:123:15: error: expected ‘)’ 123 | func (c *Cache[T]) GetWithoutPromote(key string) *Item[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:123:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:123:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:125:1: error: expected declaration 125 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:129:15: error: expected ‘)’ 129 | func (c *Cache[T]) TrackingGet(key string) TrackedItem[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:129:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:129:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:131:9: error: expected declaration 131 | if item == nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:133:9: error: expected declaration 133 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:134:9: error: expected declaration 134 | item.track() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:135:9: error: expected declaration 135 | return item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:136:1: error: expected declaration 136 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:140:15: error: expected ‘)’ 140 | func (c *Cache[T]) TrackingSet(key string, value T, duration time.Duration) TrackedItem[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:140:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:140:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:142:1: error: expected declaration 142 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:145:15: error: expected ‘)’ 145 | func (c *Cache[T]) Set(key string, value T, duration time.Duration) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:145:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:145:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:147:1: error: expected declaration 147 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:150:15: error: expected ‘)’ 150 | func (c *Cache[T]) Setnx(key string, value T, duration time.Duration) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:150:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:150:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:152:1: error: expected declaration 152 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:157:15: error: expected ‘)’ 157 | func (c *Cache[T]) Replace(key string, value T) bool { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:157:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:157:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:159:9: error: expected declaration 159 | if item == nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:161:9: error: expected declaration 161 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:162:9: error: expected declaration 162 | c.Set(key, value, item.TTL()) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:163:9: error: expected declaration 163 | return true | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:164:1: error: expected declaration 164 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:172:15: error: expected ‘)’ 172 | func (c *Cache[T]) Fetch(key string, duration time.Duration, fetch func() (T, error)) (*Item[T], error) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:172:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:172:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:174:9: error: expected declaration 174 | if item != nil && !item.Expired() { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:176:9: error: expected declaration 176 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:177:9: error: expected declaration 177 | value, err := fetch() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:178:9: error: expected declaration 178 | if err != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:180:9: error: expected declaration 180 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:181:9: error: expected declaration 181 | return c.set(key, value, duration, false), nil | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:182:1: error: expected declaration 182 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:185:15: error: expected ‘)’ 185 | func (c *Cache[T]) Delete(key string) bool { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:185:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:185:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:187:9: error: expected declaration 187 | if item != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:189:17: error: expected declaration 189 | return true | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:190:9: error: expected declaration 190 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:191:9: error: expected declaration 191 | return false | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:192:1: error: expected declaration 192 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:194:15: error: expected ‘)’ 194 | func (c *Cache[T]) deleteItem(bucket *bucket[T], item *Item[T]) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:194:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:194:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:196:9: error: expected declaration 196 | c.deletables <- item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:197:1: error: expected declaration 197 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:199:15: error: expected ‘)’ 199 | func (c *Cache[T]) set(key string, value T, duration time.Duration, track bool) *Item[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:199:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:199:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:201:9: error: expected declaration 201 | if existing != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:203:9: error: expected declaration 203 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:204:9: error: expected declaration 204 | c.promotables <- item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:205:9: error: expected declaration 205 | return item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:206:1: error: expected declaration 206 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:208:15: error: expected ‘)’ 208 | func (c *Cache[T]) bucket(key string) *bucket[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:208:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:208:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:210:9: error: expected declaration 210 | h.Write([]byte(key)) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:211:9: error: expected declaration 211 | return c.buckets[h.Sum32()&c.bucketMask] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:212:1: error: expected declaration 212 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:214:15: error: expected ‘)’ 214 | func (c *Cache[T]) halted(fn func()) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:214:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:214:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:216:9: error: expected declaration 216 | defer c.unhalt() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:217:9: error: expected declaration 217 | fn() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:218:1: error: expected declaration 218 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:220:15: error: expected ‘)’ 220 | func (c *Cache[T]) halt() { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:220:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:220:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:223:9: error: expected declaration 223 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:224:1: error: expected declaration 224 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:226:15: error: expected ‘)’ 226 | func (c *Cache[T]) unhalt() { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:226:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:226:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:229:9: error: expected declaration 229 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:230:1: error: expected declaration 230 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:232:15: error: expected ‘)’ 232 | func (c *Cache[T]) worker() { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:232:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:232:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:234:9: error: expected declaration 234 | cc := c.control | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:236:9: error: expected declaration 236 | promoteItem := func(item *Item[T]) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:239:17: error: expected declaration 239 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:240:9: error: expected declaration 240 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:242:9: error: expected declaration 242 | for { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:246:17: error: expected declaration 246 | case item := <-c.deletables: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:248:17: error: expected declaration 248 | case control := <-cc: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:252:25: error: expected declaration 252 | case controlGetDropped: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:254:33: error: expected declaration 254 | dropped = 0 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:255:25: error: expected declaration 255 | case controlSetMaxSize: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:257:33: error: expected declaration 257 | if c.size > c.maxSize { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:259:33: error: expected declaration 259 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:260:33: error: expected declaration 260 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:260:53: error: expected ‘;’ or newline after top level declaration 260 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:261:25: error: expected declaration 261 | case controlClear: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:264:41: error: expected declaration 264 | for len(promotables) > 0 { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:266:41: error: expected declaration 266 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:267:41: error: expected declaration 267 | deletables := c.deletables | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:268:41: error: expected declaration 268 | for len(deletables) > 0 { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:270:41: error: expected declaration 270 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:272:41: error: expected declaration 272 | for _, bucket := range c.buckets { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:274:41: error: expected declaration 274 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:275:41: error: expected declaration 275 | c.size = 0 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:276:41: error: expected declaration 276 | c.list = NewList[*Item[T]]() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:277:33: error: expected declaration 277 | }) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:278:33: error: expected declaration 278 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:278:53: error: expected ‘;’ or newline after top level declaration 278 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:279:25: error: expected declaration 279 | case controlGetSize: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:281:25: error: expected declaration 281 | case controlGC: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:283:33: error: expected declaration 283 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:283:53: error: expected ‘;’ or newline after top level declaration 283 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:284:25: error: expected declaration 284 | case controlSyncUpdates: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:286:33: error: expected declaration 286 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:286:53: error: expected ‘;’ or newline after top level declaration 286 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:287:25: error: expected declaration 287 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:288:17: error: expected declaration 288 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:289:9: error: expected declaration 289 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:291:1: error: expected declaration 291 | drain: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:296:17: error: expected declaration 296 | default: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:298:17: error: expected declaration 298 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:299:9: error: expected declaration 299 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:300:1: error: expected declaration 300 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:307:36: error: expected ‘(’ 307 | func doAllPendingPromotesAndDeletes[T any]( | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:307:39: error: expected ‘]’ 307 | func doAllPendingPromotesAndDeletes[T any]( | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:307:39: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:318:17: error: expected declaration 318 | default: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:320:17: error: expected declaration 320 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:321:9: error: expected declaration 321 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:322:1: error: expected declaration 322 | doAllDeletes: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:327:17: error: expected declaration 327 | default: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:329:17: error: expected declaration 329 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:330:9: error: expected declaration 330 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:331:1: error: expected declaration 331 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:333:15: error: expected ‘)’ 333 | func (c *Cache[T]) doDelete(item *Item[T]) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:333:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:333:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:336:9: error: expected declaration 336 | } else { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:338:17: error: expected declaration 338 | if c.onDelete != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:340:17: error: expected declaration 340 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:341:17: error: expected declaration 341 | c.list.Remove(item.node) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:342:17: error: expected declaration 342 | item.node = nil | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:343:17: error: expected declaration 343 | item.promotions = -2 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:344:9: error: expected declaration 344 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:345:1: error: expected declaration 345 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:347:15: error: expected ‘)’ 347 | func (c *Cache[T]) doPromote(item *Item[T]) bool { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:347:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:347:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:351:9: error: expected declaration 351 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:352:9: error: expected declaration 352 | if item.node != nil { //not a new item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:355:25: error: expected declaration 355 | item.promotions = 0 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:356:17: error: expected declaration 356 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:357:17: error: expected declaration 357 | return false | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:358:9: error: expected declaration 358 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:360:9: error: expected declaration 360 | c.size += item.size | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:361:9: error: expected declaration 361 | item.node = c.list.Insert(item) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:362:9: error: expected declaration 362 | return true | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:363:1: error: expected declaration 363 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:365:15: error: expected ‘)’ 365 | func (c *Cache[T]) gc() int { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:365:15: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:365:15: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:367:9: error: expected declaration 367 | node := c.list.Tail | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:369:9: error: expected declaration 369 | itemsToPrune := int64(c.itemsToPrune) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:370:9: error: expected declaration 370 | if min := c.size - c.maxSize; min > itemsToPrune { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:370:39: error: expected declaration 370 | if min := c.size - c.maxSize; min > itemsToPrune { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:372:9: error: expected declaration 372 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:374:9: error: expected declaration 374 | for i := int64(0); i < itemsToPrune; i++ { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:374:28: error: expected declaration 374 | for i := int64(0); i < itemsToPrune; i++ { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:374:46: error: expected declaration 374 | for i := int64(0); i < itemsToPrune; i++ { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:377:17: error: expected declaration 377 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:378:17: error: expected declaration 378 | prev := node.Prev | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:379:17: error: expected declaration 379 | item := node.Value | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:380:17: error: expected declaration 380 | if c.tracking == false || atomic.LoadInt32(&item.refCount) == 0 { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:382:25: error: expected declaration 382 | c.size -= item.size | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:383:25: error: expected declaration 383 | c.list.Remove(node) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:384:25: error: expected declaration 384 | if c.onDelete != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:386:25: error: expected declaration 386 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:387:25: error: expected declaration 387 | dropped += 1 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:388:25: error: expected declaration 388 | item.node = nil | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:389:25: error: expected declaration 389 | item.promotions = -2 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:390:17: error: expected declaration 390 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:391:17: error: expected declaration 391 | node = prev | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:392:9: error: expected declaration 392 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:393:9: error: expected declaration 393 | return dropped | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/cache.go:394:1: error: expected declaration 394 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:3:22: error: expected ‘]’ 3 | type Configuration[T any] struct { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:5:9: error: expected declaration 5 | buckets int | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:6:9: error: expected declaration 6 | itemsToPrune int | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:7:9: error: expected declaration 7 | deleteBuffer int | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:8:9: error: expected declaration 8 | promoteBuffer int | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:9:9: error: expected declaration 9 | getsPerPromote int32 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:10:9: error: expected declaration 10 | tracking bool | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:11:9: error: expected declaration 11 | onDelete func(item *Item[T]) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:12:1: error: expected declaration 12 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:17:15: error: expected ‘(’ 17 | func Configure[T any]() *Configuration[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:17:18: error: expected ‘]’ 17 | func Configure[T any]() *Configuration[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:17:18: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:27:1: error: expected declaration 27 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:31:23: error: expected ‘)’ 31 | func (c *Configuration[T]) MaxSize(max int64) *Configuration[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:31:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:31:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:33:9: error: expected declaration 33 | return c | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:34:1: error: expected declaration 34 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:39:23: error: expected ‘)’ 39 | func (c *Configuration[T]) Buckets(count uint32) *Configuration[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:39:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:39:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:42:9: error: expected declaration 42 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:43:9: error: expected declaration 43 | c.buckets = int(count) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:44:9: error: expected declaration 44 | return c | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:45:1: error: expected declaration 45 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:49:23: error: expected ‘)’ 49 | func (c *Configuration[T]) ItemsToPrune(count uint32) *Configuration[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:49:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:49:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:51:9: error: expected declaration 51 | return c | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:52:1: error: expected declaration 52 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:57:23: error: expected ‘)’ 57 | func (c *Configuration[T]) PromoteBuffer(size uint32) *Configuration[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:57:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:57:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:59:9: error: expected declaration 59 | return c | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:60:1: error: expected declaration 60 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:64:23: error: expected ‘)’ 64 | func (c *Configuration[T]) DeleteBuffer(size uint32) *Configuration[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:64:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:64:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:66:9: error: expected declaration 66 | return c | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:67:1: error: expected declaration 67 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:73:23: error: expected ‘)’ 73 | func (c *Configuration[T]) GetsPerPromote(count int32) *Configuration[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:73:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:73:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:75:9: error: expected declaration 75 | return c | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:76:1: error: expected declaration 76 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:92:23: error: expected ‘)’ 92 | func (c *Configuration[T]) Track() *Configuration[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:92:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:92:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:94:9: error: expected declaration 94 | return c | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:95:1: error: expected declaration 95 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:100:23: error: expected ‘)’ 100 | func (c *Configuration[T]) OnDelete(callback func(item *Item[T])) *Configuration[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:100:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:100:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:102:9: error: expected declaration 102 | return c | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/configuration.go:103:1: error: expected declaration 103 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:13:20: error: expected ‘]’ 13 | type TrackedItem[T any] interface { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:15:9: error: expected declaration 15 | Release() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:16:9: error: expected declaration 16 | Expired() bool | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:17:9: error: expected declaration 17 | TTL() time.Duration | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:18:9: error: expected declaration 18 | Expires() time.Time | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:19:9: error: expected declaration 19 | Extend(duration time.Duration) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:20:1: error: expected declaration 20 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:22:13: error: expected ‘]’ 22 | type Item[T any] struct { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:24:9: error: expected declaration 24 | group string | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:25:9: error: expected declaration 25 | promotions int32 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:26:9: error: expected declaration 26 | refCount int32 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:27:9: error: expected declaration 27 | expires int64 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:28:9: error: expected declaration 28 | size int64 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:29:9: error: expected declaration 29 | value T | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:30:9: error: expected declaration 30 | node *Node[*Item[T]] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:31:1: error: expected declaration 31 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:33:13: error: expected ‘(’ 33 | func newItem[T any](key string, value T, expires int64, track bool) *Item[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:33:16: error: expected ‘]’ 33 | func newItem[T any](key string, value T, expires int64, track bool) *Item[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:33:16: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:37:9: error: expected declaration 37 | if sized, ok := (interface{})(value).(Sized); ok { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:37:37: error: expected ‘;’ or newline after top level declaration 37 | if sized, ok := (interface{})(value).(Sized); ok { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:37:55: error: expected declaration 37 | if sized, ok := (interface{})(value).(Sized); ok { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:39:9: error: expected declaration 39 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:40:9: error: expected declaration 40 | item := &Item[T]{ | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:47:9: error: expected declaration 47 | if track { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:49:9: error: expected declaration 49 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:50:9: error: expected declaration 50 | return item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:51:1: error: expected declaration 51 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:53:14: error: expected ‘)’ 53 | func (i *Item[T]) shouldPromote(getsPerPromote int32) bool { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:53:14: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:53:14: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:55:9: error: expected declaration 55 | return i.promotions == getsPerPromote | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:56:1: error: expected declaration 56 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:58:14: error: expected ‘)’ 58 | func (i *Item[T]) Key() string { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:58:14: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:58:14: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:60:1: error: expected declaration 60 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:62:14: error: expected ‘)’ 62 | func (i *Item[T]) Value() T { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:62:14: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:62:14: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:64:1: error: expected declaration 64 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:66:14: error: expected ‘)’ 66 | func (i *Item[T]) track() { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:66:14: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:66:14: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:68:1: error: expected declaration 68 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:70:14: error: expected ‘)’ 70 | func (i *Item[T]) Release() { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:70:14: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:70:14: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:72:1: error: expected declaration 72 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:74:14: error: expected ‘)’ 74 | func (i *Item[T]) Expired() bool { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:74:14: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:74:14: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:76:9: error: expected declaration 76 | return expires < time.Now().UnixNano() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:77:1: error: expected declaration 77 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:79:14: error: expected ‘)’ 79 | func (i *Item[T]) TTL() time.Duration { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:79:14: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:79:14: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:81:9: error: expected declaration 81 | return time.Nanosecond * time.Duration(expires-time.Now().UnixNano()) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:82:1: error: expected declaration 82 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:84:14: error: expected ‘)’ 84 | func (i *Item[T]) Expires() time.Time { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:84:14: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:84:14: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:86:9: error: expected declaration 86 | return time.Unix(0, expires) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:87:1: error: expected declaration 87 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:89:14: error: expected ‘)’ 89 | func (i *Item[T]) Extend(duration time.Duration) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:89:14: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:89:14: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:91:1: error: expected declaration 91 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:99:14: error: expected ‘)’ 99 | func (i *Item[T]) String() string { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:99:14: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:99:14: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/item.go:101:1: error: expected declaration 101 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:8:22: error: expected ‘]’ 8 | type layeredBucket[T any] struct { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:10:9: error: expected declaration 10 | buckets map[string]*bucket[T] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:11:1: error: expected declaration 11 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:13:23: error: expected ‘)’ 13 | func (b *layeredBucket[T]) itemCount() int { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:13:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:13:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:15:9: error: expected declaration 15 | b.RLock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:16:9: error: expected declaration 16 | defer b.RUnlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:17:9: error: expected declaration 17 | for _, b := range b.buckets { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:19:9: error: expected declaration 19 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:20:9: error: expected declaration 20 | return count | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:21:1: error: expected declaration 21 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:23:23: error: expected ‘)’ 23 | func (b *layeredBucket[T]) get(primary, secondary string) *Item[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:23:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:23:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:25:9: error: expected declaration 25 | if bucket == nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:27:9: error: expected declaration 27 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:28:9: error: expected declaration 28 | return bucket.get(secondary) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:29:1: error: expected declaration 29 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:31:23: error: expected ‘)’ 31 | func (b *layeredBucket[T]) getSecondaryBucket(primary string) *bucket[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:31:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:31:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:33:9: error: expected declaration 33 | bucket, exists := b.buckets[primary] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:34:9: error: expected declaration 34 | b.RUnlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:35:9: error: expected declaration 35 | if exists == false { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:37:9: error: expected declaration 37 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:38:9: error: expected declaration 38 | return bucket | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:39:1: error: expected declaration 39 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:41:23: error: expected ‘)’ 41 | func (b *layeredBucket[T]) set(primary, secondary string, value T, duration time.Duration, track bool) (*Item[T], *Item[T]) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:41:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:41:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:43:9: error: expected declaration 43 | bkt, exists := b.buckets[primary] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:44:9: error: expected declaration 44 | if exists == false { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:46:17: error: expected declaration 46 | b.buckets[primary] = bkt | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:47:9: error: expected declaration 47 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:48:9: error: expected declaration 48 | b.Unlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:49:9: error: expected declaration 49 | item, existing := bkt.set(secondary, value, duration, track) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:50:9: error: expected declaration 50 | item.group = primary | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:51:9: error: expected declaration 51 | return item, existing | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:52:1: error: expected declaration 52 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:54:23: error: expected ‘)’ 54 | func (b *layeredBucket[T]) delete(primary, secondary string) *Item[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:54:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:54:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:56:9: error: expected declaration 56 | bucket, exists := b.buckets[primary] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:57:9: error: expected declaration 57 | b.RUnlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:58:9: error: expected declaration 58 | if exists == false { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:60:9: error: expected declaration 60 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:61:9: error: expected declaration 61 | return bucket.delete(secondary) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:62:1: error: expected declaration 62 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:64:23: error: expected ‘)’ 64 | func (b *layeredBucket[T]) deletePrefix(primary, prefix string, deletables chan *Item[T]) int { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:64:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:64:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:66:9: error: expected declaration 66 | bucket, exists := b.buckets[primary] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:67:9: error: expected declaration 67 | b.RUnlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:68:9: error: expected declaration 68 | if exists == false { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:70:9: error: expected declaration 70 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:71:9: error: expected declaration 71 | return bucket.deletePrefix(prefix, deletables) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:72:1: error: expected declaration 72 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:74:23: error: expected ‘)’ 74 | func (b *layeredBucket[T]) deleteFunc(primary string, matches func(key string, item *Item[T]) bool, deletables chan *Item[T]) int { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:74:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:74:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:76:9: error: expected declaration 76 | bucket, exists := b.buckets[primary] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:77:9: error: expected declaration 77 | b.RUnlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:78:9: error: expected declaration 78 | if exists == false { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:80:9: error: expected declaration 80 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:81:9: error: expected declaration 81 | return bucket.deleteFunc(matches, deletables) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:82:1: error: expected declaration 82 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:84:23: error: expected ‘)’ 84 | func (b *layeredBucket[T]) deleteAll(primary string, deletables chan *Item[T]) bool { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:84:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:84:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:86:9: error: expected declaration 86 | bucket, exists := b.buckets[primary] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:87:9: error: expected declaration 87 | b.RUnlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:88:9: error: expected declaration 88 | if exists == false { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:90:9: error: expected declaration 90 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:92:9: error: expected declaration 92 | bucket.Lock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:93:9: error: expected declaration 93 | defer bucket.Unlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:95:9: error: expected declaration 95 | if l := len(bucket.lookup); l == 0 { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:95:37: error: expected declaration 95 | if l := len(bucket.lookup); l == 0 { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:97:9: error: expected declaration 97 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:98:9: error: expected declaration 98 | for key, item := range bucket.lookup { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:100:17: error: expected declaration 100 | deletables <- item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:101:9: error: expected declaration 101 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:102:9: error: expected declaration 102 | return true | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:103:1: error: expected declaration 103 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:105:23: error: expected ‘)’ 105 | func (b *layeredBucket[T]) forEachFunc(primary string, matches func(key string, item *Item[T]) bool) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:105:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:105:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:107:9: error: expected declaration 107 | bucket, exists := b.buckets[primary] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:108:9: error: expected declaration 108 | b.RUnlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:109:9: error: expected declaration 109 | if exists { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:111:9: error: expected declaration 111 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:112:1: error: expected declaration 112 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:115:23: error: expected ‘)’ 115 | func (b *layeredBucket[T]) clear() { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:115:23: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:115:23: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:118:9: error: expected declaration 118 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:119:9: error: expected declaration 119 | b.buckets = make(map[string]*bucket[T]) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredbucket.go:120:1: error: expected declaration 120 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:10:21: error: expected ‘]’ 10 | type LayeredCache[T any] struct { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:12:9: error: expected declaration 12 | control | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:13:9: error: expected declaration 13 | list *List[*Item[T]] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:14:9: error: expected declaration 14 | buckets []*layeredBucket[T] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:15:9: error: expected declaration 15 | bucketMask uint32 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:16:9: error: expected declaration 16 | size int64 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:17:9: error: expected declaration 17 | deletables chan *Item[T] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:18:9: error: expected declaration 18 | promotables chan *Item[T] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:19:1: error: expected declaration 19 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:34:13: error: expected ‘(’ 34 | func Layered[T any](config *Configuration[T]) *LayeredCache[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:34:16: error: expected ‘]’ 34 | func Layered[T any](config *Configuration[T]) *LayeredCache[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:34:16: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:44:9: error: expected declaration 44 | for i := 0; i < int(config.buckets); i++ { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:44:21: error: expected declaration 44 | for i := 0; i < int(config.buckets); i++ { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:44:46: error: expected declaration 44 | for i := 0; i < int(config.buckets); i++ { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:48:9: error: expected declaration 48 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:49:9: error: expected declaration 49 | go c.worker() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:50:9: error: expected declaration 50 | return c | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:51:1: error: expected declaration 51 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:53:22: error: expected ‘)’ 53 | func (c *LayeredCache[T]) ItemCount() int { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:53:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:53:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:55:9: error: expected declaration 55 | for _, b := range c.buckets { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:57:9: error: expected declaration 57 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:58:9: error: expected declaration 58 | return count | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:59:1: error: expected declaration 59 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:65:22: error: expected ‘)’ 65 | func (c *LayeredCache[T]) Get(primary, secondary string) *Item[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:65:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:65:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:67:9: error: expected declaration 67 | if item == nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:69:9: error: expected declaration 69 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:70:9: error: expected declaration 70 | if item.expires > time.Now().UnixNano() { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:75:9: error: expected declaration 75 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:76:9: error: expected declaration 76 | return item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:77:1: error: expected declaration 77 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:82:22: error: expected ‘)’ 82 | func (c *LayeredCache[T]) GetWithoutPromote(primary, secondary string) *Item[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:82:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:82:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:84:1: error: expected declaration 84 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:86:22: error: expected ‘)’ 86 | func (c *LayeredCache[T]) ForEachFunc(primary string, matches func(key string, item *Item[T]) bool) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:86:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:86:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:88:1: error: expected declaration 88 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:93:22: error: expected ‘)’ 93 | func (c *LayeredCache[T]) GetOrCreateSecondaryCache(primary string) *SecondaryCache[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:93:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:93:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:95:9: error: expected declaration 95 | bkt := primaryBkt.getSecondaryBucket(primary) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:96:9: error: expected declaration 96 | primaryBkt.Lock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:97:9: error: expected declaration 97 | if bkt == nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:99:17: error: expected declaration 99 | primaryBkt.buckets[primary] = bkt | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:100:9: error: expected declaration 100 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:101:9: error: expected declaration 101 | primaryBkt.Unlock() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:102:9: error: expected declaration 102 | return &SecondaryCache[T]{ | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:106:1: error: expected declaration 106 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:110:22: error: expected ‘)’ 110 | func (c *LayeredCache[T]) TrackingGet(primary, secondary string) TrackedItem[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:110:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:110:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:112:9: error: expected declaration 112 | if item == nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:114:9: error: expected declaration 114 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:115:9: error: expected declaration 115 | item.track() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:116:9: error: expected declaration 116 | return item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:117:1: error: expected declaration 117 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:120:22: error: expected ‘)’ 120 | func (c *LayeredCache[T]) TrackingSet(primary, secondary string, value T, duration time.Duration) TrackedItem[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:120:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:120:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:122:1: error: expected declaration 122 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:125:22: error: expected ‘)’ 125 | func (c *LayeredCache[T]) Set(primary, secondary string, value T, duration time.Duration) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:125:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:125:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:127:1: error: expected declaration 127 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:132:22: error: expected ‘)’ 132 | func (c *LayeredCache[T]) Replace(primary, secondary string, value T) bool { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:132:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:132:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:134:9: error: expected declaration 134 | if item == nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:136:9: error: expected declaration 136 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:137:9: error: expected declaration 137 | c.Set(primary, secondary, value, item.TTL()) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:138:9: error: expected declaration 138 | return true | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:139:1: error: expected declaration 139 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:147:22: error: expected ‘)’ 147 | func (c *LayeredCache[T]) Fetch(primary, secondary string, duration time.Duration, fetch func() (T, error)) (*Item[T], error) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:147:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:147:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:149:9: error: expected declaration 149 | if item != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:151:9: error: expected declaration 151 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:152:9: error: expected declaration 152 | value, err := fetch() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:153:9: error: expected declaration 153 | if err != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:155:9: error: expected declaration 155 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:156:9: error: expected declaration 156 | return c.set(primary, secondary, value, duration, false), nil | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:157:1: error: expected declaration 157 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:160:22: error: expected ‘)’ 160 | func (c *LayeredCache[T]) Delete(primary, secondary string) bool { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:160:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:160:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:162:9: error: expected declaration 162 | if item != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:164:17: error: expected declaration 164 | return true | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:165:9: error: expected declaration 165 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:166:9: error: expected declaration 166 | return false | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:167:1: error: expected declaration 167 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:170:22: error: expected ‘)’ 170 | func (c *LayeredCache[T]) DeleteAll(primary string) bool { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:170:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:170:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:172:1: error: expected declaration 172 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:175:22: error: expected ‘)’ 175 | func (c *LayeredCache[T]) DeletePrefix(primary, prefix string) int { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:175:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:175:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:177:1: error: expected declaration 177 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:180:22: error: expected ‘)’ 180 | func (c *LayeredCache[T]) DeleteFunc(primary string, matches func(key string, item *Item[T]) bool) int { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:180:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:180:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:182:1: error: expected declaration 182 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:184:22: error: expected ‘)’ 184 | func (c *LayeredCache[T]) set(primary, secondary string, value T, duration time.Duration, track bool) *Item[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:184:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:184:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:186:9: error: expected declaration 186 | if existing != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:188:9: error: expected declaration 188 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:189:9: error: expected declaration 189 | c.promote(item) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:190:9: error: expected declaration 190 | return item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:191:1: error: expected declaration 191 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:193:22: error: expected ‘)’ 193 | func (c *LayeredCache[T]) bucket(key string) *layeredBucket[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:193:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:193:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:195:9: error: expected declaration 195 | h.Write([]byte(key)) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:196:9: error: expected declaration 196 | return c.buckets[h.Sum32()&c.bucketMask] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:197:1: error: expected declaration 197 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:199:22: error: expected ‘)’ 199 | func (c *LayeredCache[T]) halted(fn func()) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:199:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:199:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:201:9: error: expected declaration 201 | defer c.unhalt() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:202:9: error: expected declaration 202 | fn() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:203:1: error: expected declaration 203 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:205:22: error: expected ‘)’ 205 | func (c *LayeredCache[T]) halt() { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:205:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:205:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:208:9: error: expected declaration 208 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:209:1: error: expected declaration 209 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:211:22: error: expected ‘)’ 211 | func (c *LayeredCache[T]) unhalt() { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:211:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:211:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:214:9: error: expected declaration 214 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:215:1: error: expected declaration 215 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:217:22: error: expected ‘)’ 217 | func (c *LayeredCache[T]) promote(item *Item[T]) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:217:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:217:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:219:1: error: expected declaration 219 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:221:22: error: expected ‘)’ 221 | func (c *LayeredCache[T]) worker() { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:221:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:221:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:223:9: error: expected declaration 223 | cc := c.control | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:225:9: error: expected declaration 225 | promoteItem := func(item *Item[T]) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:228:17: error: expected declaration 228 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:229:9: error: expected declaration 229 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:231:9: error: expected declaration 231 | for { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:235:17: error: expected declaration 235 | case item := <-c.deletables: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:237:17: error: expected declaration 237 | case control := <-cc: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:241:25: error: expected declaration 241 | case controlGetDropped: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:243:33: error: expected declaration 243 | dropped = 0 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:244:25: error: expected declaration 244 | case controlSetMaxSize: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:246:33: error: expected declaration 246 | if c.size > c.maxSize { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:248:33: error: expected declaration 248 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:249:33: error: expected declaration 249 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:249:53: error: expected ‘;’ or newline after top level declaration 249 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:250:25: error: expected declaration 250 | case controlClear: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:252:33: error: expected declaration 252 | for len(promotables) > 0 { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:254:33: error: expected declaration 254 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:255:33: error: expected declaration 255 | deletables := c.deletables | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:256:33: error: expected declaration 256 | for len(deletables) > 0 { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:258:33: error: expected declaration 258 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:260:33: error: expected declaration 260 | c.halted(func() { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:263:41: error: expected declaration 263 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:264:41: error: expected declaration 264 | c.size = 0 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:265:41: error: expected declaration 265 | c.list = NewList[*Item[T]]() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:266:33: error: expected declaration 266 | }) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:267:33: error: expected declaration 267 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:267:53: error: expected ‘;’ or newline after top level declaration 267 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:268:25: error: expected declaration 268 | case controlGetSize: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:270:25: error: expected declaration 270 | case controlGC: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:272:33: error: expected declaration 272 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:272:53: error: expected ‘;’ or newline after top level declaration 272 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:273:25: error: expected declaration 273 | case controlSyncUpdates: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:275:33: error: expected declaration 275 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:275:53: error: expected ‘;’ or newline after top level declaration 275 | msg.done <- struct{}{} | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:276:25: error: expected declaration 276 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:277:17: error: expected declaration 277 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:278:9: error: expected declaration 278 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:280:1: error: expected declaration 280 | drain: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:285:17: error: expected declaration 285 | default: | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:287:17: error: expected declaration 287 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:288:9: error: expected declaration 288 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:289:1: error: expected declaration 289 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:291:22: error: expected ‘)’ 291 | func (c *LayeredCache[T]) doDelete(item *Item[T]) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:291:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:291:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:294:9: error: expected declaration 294 | } else { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:296:17: error: expected declaration 296 | if c.onDelete != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:298:17: error: expected declaration 298 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:299:17: error: expected declaration 299 | c.list.Remove(item.node) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:300:17: error: expected declaration 300 | item.node = nil | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:301:17: error: expected declaration 301 | item.promotions = -2 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:302:9: error: expected declaration 302 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:303:1: error: expected declaration 303 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:305:22: error: expected ‘)’ 305 | func (c *LayeredCache[T]) doPromote(item *Item[T]) bool { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:305:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:305:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:309:9: error: expected declaration 309 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:310:9: error: expected declaration 310 | if item.node != nil { //not a new item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:313:25: error: expected declaration 313 | item.promotions = 0 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:314:17: error: expected declaration 314 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:315:17: error: expected declaration 315 | return false | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:316:9: error: expected declaration 316 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:317:9: error: expected declaration 317 | c.size += item.size | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:318:9: error: expected declaration 318 | item.node = c.list.Insert(item) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:319:9: error: expected declaration 319 | return true | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:320:1: error: expected declaration 320 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:322:22: error: expected ‘)’ 322 | func (c *LayeredCache[T]) gc() int { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:322:22: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:322:22: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:324:9: error: expected declaration 324 | dropped := 0 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:325:9: error: expected declaration 325 | itemsToPrune := int64(c.itemsToPrune) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:327:9: error: expected declaration 327 | if min := c.size - c.maxSize; min > itemsToPrune { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:327:39: error: expected declaration 327 | if min := c.size - c.maxSize; min > itemsToPrune { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:329:9: error: expected declaration 329 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:331:9: error: expected declaration 331 | for i := int64(0); i < itemsToPrune; i++ { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:331:28: error: expected declaration 331 | for i := int64(0); i < itemsToPrune; i++ { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:331:46: error: expected declaration 331 | for i := int64(0); i < itemsToPrune; i++ { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:334:17: error: expected declaration 334 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:335:17: error: expected declaration 335 | prev := node.Prev | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:336:17: error: expected declaration 336 | item := node.Value | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:337:17: error: expected declaration 337 | if c.tracking == false || atomic.LoadInt32(&item.refCount) == 0 { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:339:25: error: expected declaration 339 | c.size -= item.size | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:340:25: error: expected declaration 340 | c.list.Remove(node) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:341:25: error: expected declaration 341 | if c.onDelete != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:343:25: error: expected declaration 343 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:344:25: error: expected declaration 344 | item.node = nil | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:345:25: error: expected declaration 345 | item.promotions = -2 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:346:25: error: expected declaration 346 | dropped += 1 | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:347:17: error: expected declaration 347 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:348:17: error: expected declaration 348 | node = prev | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:349:9: error: expected declaration 349 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:350:9: error: expected declaration 350 | return dropped | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/layeredcache.go:351:1: error: expected declaration 351 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:3:13: error: expected ‘]’ 3 | type List[T any] struct { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:5:9: error: expected declaration 5 | Tail *Node[T] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:6:1: error: expected declaration 6 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:8:13: error: expected ‘(’ 8 | func NewList[T any]() *List[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:8:16: error: expected ‘]’ 8 | func NewList[T any]() *List[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:8:16: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:10:1: error: expected declaration 10 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:12:14: error: expected ‘)’ 12 | func (l *List[T]) Remove(node *Node[T]) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:12:14: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:12:14: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:14:9: error: expected declaration 14 | prev := node.Prev | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:16:9: error: expected declaration 16 | if next == nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:18:9: error: expected declaration 18 | } else { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:20:9: error: expected declaration 20 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:22:9: error: expected declaration 22 | if prev == nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:24:9: error: expected declaration 24 | } else { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:26:9: error: expected declaration 26 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:27:9: error: expected declaration 27 | node.Next = nil | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:28:9: error: expected declaration 28 | node.Prev = nil | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:29:1: error: expected declaration 29 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:31:14: error: expected ‘)’ 31 | func (l *List[T]) MoveToFront(node *Node[T]) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:31:14: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:31:14: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:33:9: error: expected declaration 33 | l.nodeToFront(node) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:34:1: error: expected declaration 34 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:36:14: error: expected ‘)’ 36 | func (l *List[T]) Insert(value T) *Node[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:36:14: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:36:14: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:38:9: error: expected declaration 38 | l.nodeToFront(node) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:39:9: error: expected declaration 39 | return node | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:40:1: error: expected declaration 40 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:42:14: error: expected ‘)’ 42 | func (l *List[T]) nodeToFront(node *Node[T]) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:42:14: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:42:14: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:44:9: error: expected declaration 44 | l.Head = node | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:45:9: error: expected declaration 45 | if head == nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:47:17: error: expected declaration 47 | return | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:48:9: error: expected declaration 48 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:49:9: error: expected declaration 49 | node.Next = head | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:50:9: error: expected declaration 50 | head.Prev = node | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:51:1: error: expected declaration 51 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:53:13: error: expected ‘]’ 53 | type Node[T any] struct { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:55:9: error: expected declaration 55 | Prev *Node[T] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:56:9: error: expected declaration 56 | Value T | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/list.go:57:1: error: expected declaration 57 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:5:23: error: expected ‘]’ 5 | type SecondaryCache[T any] struct { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:7:9: error: expected declaration 7 | pCache *LayeredCache[T] | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:8:1: error: expected declaration 8 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:12:24: error: expected ‘)’ 12 | func (s *SecondaryCache[T]) Get(secondary string) *Item[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:12:24: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:12:24: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:14:1: error: expected declaration 14 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:18:24: error: expected ‘)’ 18 | func (s *SecondaryCache[T]) Set(secondary string, value T, duration time.Duration) *Item[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:18:24: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:18:24: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:20:9: error: expected declaration 20 | if existing != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:22:9: error: expected declaration 22 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:23:9: error: expected declaration 23 | s.pCache.promote(item) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:24:9: error: expected declaration 24 | return item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:25:1: error: expected declaration 25 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:29:24: error: expected ‘)’ 29 | func (s *SecondaryCache[T]) Fetch(secondary string, duration time.Duration, fetch func() (T, error)) (*Item[T], error) { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:29:24: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:29:24: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:31:9: error: expected declaration 31 | if item != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:33:9: error: expected declaration 33 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:34:9: error: expected declaration 34 | value, err := fetch() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:35:9: error: expected declaration 35 | if err != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:37:9: error: expected declaration 37 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:38:9: error: expected declaration 38 | return s.Set(secondary, value, duration), nil | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:39:1: error: expected declaration 39 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:43:24: error: expected ‘)’ 43 | func (s *SecondaryCache[T]) Delete(secondary string) bool { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:43:24: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:43:24: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:45:9: error: expected declaration 45 | if item != nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:47:17: error: expected declaration 47 | return true | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:48:9: error: expected declaration 48 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:49:9: error: expected declaration 49 | return false | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:50:1: error: expected declaration 50 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:54:24: error: expected ‘)’ 54 | func (s *SecondaryCache[T]) Replace(secondary string, value T) bool { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:54:24: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:54:24: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:56:9: error: expected declaration 56 | if item == nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:58:9: error: expected declaration 58 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:59:9: error: expected declaration 59 | s.Set(secondary, value, item.TTL()) | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:60:9: error: expected declaration 60 | return true | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:61:1: error: expected declaration 61 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:65:24: error: expected ‘)’ 65 | func (c *SecondaryCache[T]) TrackingGet(secondary string) TrackedItem[T] { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:65:24: error: expected function name ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:65:24: error: expected ‘;’ or newline after top level declaration ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:67:9: error: expected declaration 67 | if item == nil { | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:69:9: error: expected declaration 69 | } | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:70:9: error: expected declaration 70 | item.track() | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:71:9: error: expected declaration 71 | return item | ^ ../pkg/mod/github.com/karlseguin/ccache/v3@v3.0.5/secondarycache.go:72:1: error: expected declaration 72 | } | ^ # github.com/klauspost/compress/zstd ../pkg/mod/github.com/klauspost/compress@v1.17.9/zstd/dict.go:510:38: error: reference to undefined field or method ‘AppendUint32’ 510 | out.Write(binary.LittleEndian.AppendUint32(nil, o.ID)) | ^ ../pkg/mod/github.com/klauspost/compress@v1.17.9/zstd/dict.go:521:38: error: reference to undefined field or method ‘AppendUint32’ 521 | out.Write(binary.LittleEndian.AppendUint32(nil, uint32(o.Offsets[0]))) | ^ ../pkg/mod/github.com/klauspost/compress@v1.17.9/zstd/dict.go:522:38: error: reference to undefined field or method ‘AppendUint32’ 522 | out.Write(binary.LittleEndian.AppendUint32(nil, uint32(o.Offsets[1]))) | ^ ../pkg/mod/github.com/klauspost/compress@v1.17.9/zstd/dict.go:523:38: error: reference to undefined field or method ‘AppendUint32’ 523 | out.Write(binary.LittleEndian.AppendUint32(nil, uint32(o.Offsets[2]))) | ^ note: module requires Go 1.20 ==> ERROR: A failure occurred in build(). Aborting... ==> ERROR: Build failed, check /var/lib/archbuild/extra-staging-with-build-support-i486/build/build used straw: :with_build_support:clean_chroot: build@eurobuild6-7-i486