From b477ff8272a1bf199b1bef8bc05d5e666f471c34 Mon Sep 17 00:00:00 2001 From: Dave Brophy Date: Mon, 9 Sep 2024 08:27:02 +1000 Subject: [PATCH] Update to Go 1.23 --- jen/hints.go | 540 +++++++++++++++++++++++++++------------------------ 1 file changed, 284 insertions(+), 256 deletions(-) diff --git a/jen/hints.go b/jen/hints.go index 172c06b..35e7ffd 100644 --- a/jen/hints.go +++ b/jen/hints.go @@ -4,260 +4,288 @@ package jen // standardLibraryHints contains package name hints var standardLibraryHints = map[string]string{ - "archive/tar": "tar", - "archive/zip": "zip", - "bufio": "bufio", - "bytes": "bytes", - "cmp": "cmp", - "compress/bzip2": "bzip2", - "compress/flate": "flate", - "compress/gzip": "gzip", - "compress/lzw": "lzw", - "compress/zlib": "zlib", - "container/heap": "heap", - "container/list": "list", - "container/ring": "ring", - "context": "context", - "crypto": "crypto", - "crypto/aes": "aes", - "crypto/cipher": "cipher", - "crypto/des": "des", - "crypto/dsa": "dsa", - "crypto/ecdh": "ecdh", - "crypto/ecdsa": "ecdsa", - "crypto/ed25519": "ed25519", - "crypto/elliptic": "elliptic", - "crypto/hmac": "hmac", - "crypto/internal/alias": "alias", - "crypto/internal/bigmod": "bigmod", - "crypto/internal/boring": "boring", - "crypto/internal/boring/bbig": "bbig", - "crypto/internal/boring/bcache": "bcache", - "crypto/internal/boring/sig": "sig", - "crypto/internal/edwards25519": "edwards25519", - "crypto/internal/edwards25519/field": "field", - "crypto/internal/nistec": "nistec", - "crypto/internal/nistec/fiat": "fiat", - "crypto/internal/randutil": "randutil", - "crypto/md5": "md5", - "crypto/rand": "rand", - "crypto/rc4": "rc4", - "crypto/rsa": "rsa", - "crypto/sha1": "sha1", - "crypto/sha256": "sha256", - "crypto/sha512": "sha512", - "crypto/subtle": "subtle", - "crypto/tls": "tls", - "crypto/x509": "x509", - "crypto/x509/internal/macos": "macOS", - "crypto/x509/pkix": "pkix", - "database/sql": "sql", - "database/sql/driver": "driver", - "debug/buildinfo": "buildinfo", - "debug/dwarf": "dwarf", - "debug/elf": "elf", - "debug/gosym": "gosym", - "debug/macho": "macho", - "debug/pe": "pe", - "debug/plan9obj": "plan9obj", - "embed": "embed", - "embed/internal/embedtest": "embedtest", - "encoding": "encoding", - "encoding/ascii85": "ascii85", - "encoding/asn1": "asn1", - "encoding/base32": "base32", - "encoding/base64": "base64", - "encoding/binary": "binary", - "encoding/csv": "csv", - "encoding/gob": "gob", - "encoding/hex": "hex", - "encoding/json": "json", - "encoding/pem": "pem", - "encoding/xml": "xml", - "errors": "errors", - "expvar": "expvar", - "flag": "flag", - "fmt": "fmt", - "go/ast": "ast", - "go/build": "build", - "go/build/constraint": "constraint", - "go/constant": "constant", - "go/doc": "doc", - "go/doc/comment": "comment", - "go/format": "format", - "go/importer": "importer", - "go/internal/gccgoimporter": "gccgoimporter", - "go/internal/gcimporter": "gcimporter", - "go/internal/srcimporter": "srcimporter", - "go/internal/typeparams": "typeparams", - "go/parser": "parser", - "go/printer": "printer", - "go/scanner": "scanner", - "go/token": "token", - "go/types": "types", - "hash": "hash", - "hash/adler32": "adler32", - "hash/crc32": "crc32", - "hash/crc64": "crc64", - "hash/fnv": "fnv", - "hash/maphash": "maphash", - "html": "html", - "html/template": "template", - "image": "image", - "image/color": "color", - "image/color/palette": "palette", - "image/draw": "draw", - "image/gif": "gif", - "image/internal/imageutil": "imageutil", - "image/jpeg": "jpeg", - "image/png": "png", - "index/suffixarray": "suffixarray", - "internal/abi": "abi", - "internal/bisect": "bisect", - "internal/buildcfg": "buildcfg", - "internal/bytealg": "bytealg", - "internal/cfg": "cfg", - "internal/coverage": "coverage", - "internal/coverage/calloc": "calloc", - "internal/coverage/cformat": "cformat", - "internal/coverage/cmerge": "cmerge", - "internal/coverage/decodecounter": "decodecounter", - "internal/coverage/decodemeta": "decodemeta", - "internal/coverage/encodecounter": "encodecounter", - "internal/coverage/encodemeta": "encodemeta", - "internal/coverage/pods": "pods", - "internal/coverage/rtcov": "rtcov", - "internal/coverage/slicereader": "slicereader", - "internal/coverage/slicewriter": "slicewriter", - "internal/coverage/stringtab": "stringtab", - "internal/coverage/test": "test", - "internal/coverage/uleb128": "uleb128", - "internal/cpu": "cpu", - "internal/dag": "dag", - "internal/diff": "diff", - "internal/fmtsort": "fmtsort", - "internal/fuzz": "fuzz", - "internal/goarch": "goarch", - "internal/godebug": "godebug", - "internal/godebugs": "godebugs", - "internal/goexperiment": "goexperiment", - "internal/goos": "goos", - "internal/goroot": "goroot", - "internal/goversion": "goversion", - "internal/intern": "intern", - "internal/itoa": "itoa", - "internal/lazyregexp": "lazyregexp", - "internal/lazytemplate": "lazytemplate", - "internal/nettrace": "nettrace", - "internal/obscuretestdata": "obscuretestdata", - "internal/oserror": "oserror", - "internal/pkgbits": "pkgbits", - "internal/platform": "platform", - "internal/poll": "poll", - "internal/profile": "profile", - "internal/race": "race", - "internal/reflectlite": "reflectlite", - "internal/safefilepath": "safefilepath", - "internal/saferio": "saferio", - "internal/singleflight": "singleflight", - "internal/syscall/execenv": "execenv", - "internal/syscall/unix": "unix", - "internal/sysinfo": "sysinfo", - "internal/testenv": "testenv", - "internal/testlog": "testlog", - "internal/testpty": "testpty", - "internal/trace": "trace", - "internal/txtar": "txtar", - "internal/types/errors": "errors", - "internal/unsafeheader": "unsafeheader", - "internal/xcoff": "xcoff", - "internal/zstd": "zstd", - "io": "io", - "io/fs": "fs", - "io/ioutil": "ioutil", - "log": "log", - "log/internal": "internal", - "log/slog": "slog", - "log/slog/internal": "internal", - "log/slog/internal/benchmarks": "benchmarks", - "log/slog/internal/buffer": "buffer", - "log/slog/internal/slogtest": "slogtest", - "log/syslog": "syslog", - "maps": "maps", - "math": "math", - "math/big": "big", - "math/bits": "bits", - "math/cmplx": "cmplx", - "math/rand": "rand", - "mime": "mime", - "mime/multipart": "multipart", - "mime/quotedprintable": "quotedprintable", - "net": "net", - "net/http": "http", - "net/http/cgi": "cgi", - "net/http/cookiejar": "cookiejar", - "net/http/fcgi": "fcgi", - "net/http/httptest": "httptest", - "net/http/httptrace": "httptrace", - "net/http/httputil": "httputil", - "net/http/internal": "internal", - "net/http/internal/ascii": "ascii", - "net/http/internal/testcert": "testcert", - "net/http/pprof": "pprof", - "net/internal/socktest": "socktest", - "net/mail": "mail", - "net/netip": "netip", - "net/rpc": "rpc", - "net/rpc/jsonrpc": "jsonrpc", - "net/smtp": "smtp", - "net/textproto": "textproto", - "net/url": "url", - "os": "os", - "os/exec": "exec", - "os/exec/internal/fdtest": "fdtest", - "os/signal": "signal", - "os/user": "user", - "path": "path", - "path/filepath": "filepath", - "plugin": "plugin", - "reflect": "reflect", - "reflect/internal/example1": "example1", - "reflect/internal/example2": "example2", - "regexp": "regexp", - "regexp/syntax": "syntax", - "runtime": "runtime", - "runtime/cgo": "cgo", - "runtime/coverage": "coverage", - "runtime/debug": "debug", - "runtime/internal/atomic": "atomic", - "runtime/internal/math": "math", - "runtime/internal/sys": "sys", - "runtime/internal/wasitest": "wasi", - "runtime/metrics": "metrics", - "runtime/pprof": "pprof", - "runtime/race": "race", - "runtime/trace": "trace", - "slices": "slices", - "sort": "sort", - "strconv": "strconv", - "strings": "strings", - "sync": "sync", - "sync/atomic": "atomic", - "syscall": "syscall", - "testing": "testing", - "testing/fstest": "fstest", - "testing/internal/testdeps": "testdeps", - "testing/iotest": "iotest", - "testing/quick": "quick", - "testing/slogtest": "slogtest", - "text/scanner": "scanner", - "text/tabwriter": "tabwriter", - "text/template": "template", - "text/template/parse": "parse", - "time": "time", - "time/tzdata": "tzdata", - "unicode": "unicode", - "unicode/utf16": "utf16", - "unicode/utf8": "utf8", - "unsafe": "unsafe", + "archive/tar": "tar", + "archive/zip": "zip", + "bufio": "bufio", + "bytes": "bytes", + "cmp": "cmp", + "compress/bzip2": "bzip2", + "compress/flate": "flate", + "compress/gzip": "gzip", + "compress/lzw": "lzw", + "compress/zlib": "zlib", + "container/heap": "heap", + "container/list": "list", + "container/ring": "ring", + "context": "context", + "crypto": "crypto", + "crypto/aes": "aes", + "crypto/cipher": "cipher", + "crypto/des": "des", + "crypto/dsa": "dsa", + "crypto/ecdh": "ecdh", + "crypto/ecdsa": "ecdsa", + "crypto/ed25519": "ed25519", + "crypto/elliptic": "elliptic", + "crypto/hmac": "hmac", + "crypto/internal/alias": "alias", + "crypto/internal/bigmod": "bigmod", + "crypto/internal/boring": "boring", + "crypto/internal/boring/bbig": "bbig", + "crypto/internal/boring/bcache": "bcache", + "crypto/internal/boring/sig": "sig", + "crypto/internal/cryptotest": "cryptotest", + "crypto/internal/edwards25519": "edwards25519", + "crypto/internal/edwards25519/field": "field", + "crypto/internal/hpke": "hpke", + "crypto/internal/mlkem768": "mlkem768", + "crypto/internal/nistec": "nistec", + "crypto/internal/nistec/fiat": "fiat", + "crypto/internal/randutil": "randutil", + "crypto/md5": "md5", + "crypto/rand": "rand", + "crypto/rc4": "rc4", + "crypto/rsa": "rsa", + "crypto/sha1": "sha1", + "crypto/sha256": "sha256", + "crypto/sha512": "sha512", + "crypto/subtle": "subtle", + "crypto/tls": "tls", + "crypto/x509": "x509", + "crypto/x509/internal/macos": "macOS", + "crypto/x509/pkix": "pkix", + "database/sql": "sql", + "database/sql/driver": "driver", + "debug/buildinfo": "buildinfo", + "debug/dwarf": "dwarf", + "debug/elf": "elf", + "debug/gosym": "gosym", + "debug/macho": "macho", + "debug/pe": "pe", + "debug/plan9obj": "plan9obj", + "embed": "embed", + "embed/internal/embedtest": "embedtest", + "encoding": "encoding", + "encoding/ascii85": "ascii85", + "encoding/asn1": "asn1", + "encoding/base32": "base32", + "encoding/base64": "base64", + "encoding/binary": "binary", + "encoding/csv": "csv", + "encoding/gob": "gob", + "encoding/hex": "hex", + "encoding/json": "json", + "encoding/pem": "pem", + "encoding/xml": "xml", + "errors": "errors", + "expvar": "expvar", + "flag": "flag", + "fmt": "fmt", + "go/ast": "ast", + "go/build": "build", + "go/build/constraint": "constraint", + "go/constant": "constant", + "go/doc": "doc", + "go/doc/comment": "comment", + "go/format": "format", + "go/importer": "importer", + "go/internal/gccgoimporter": "gccgoimporter", + "go/internal/gcimporter": "gcimporter", + "go/internal/srcimporter": "srcimporter", + "go/internal/typeparams": "typeparams", + "go/parser": "parser", + "go/printer": "printer", + "go/scanner": "scanner", + "go/token": "token", + "go/types": "types", + "go/version": "version", + "hash": "hash", + "hash/adler32": "adler32", + "hash/crc32": "crc32", + "hash/crc64": "crc64", + "hash/fnv": "fnv", + "hash/maphash": "maphash", + "html": "html", + "html/template": "template", + "image": "image", + "image/color": "color", + "image/color/palette": "palette", + "image/draw": "draw", + "image/gif": "gif", + "image/internal/imageutil": "imageutil", + "image/jpeg": "jpeg", + "image/png": "png", + "index/suffixarray": "suffixarray", + "internal/abi": "abi", + "internal/asan": "asan", + "internal/bisect": "bisect", + "internal/buildcfg": "buildcfg", + "internal/bytealg": "bytealg", + "internal/byteorder": "byteorder", + "internal/cfg": "cfg", + "internal/chacha8rand": "chacha8rand", + "internal/concurrent": "concurrent", + "internal/coverage": "coverage", + "internal/coverage/calloc": "calloc", + "internal/coverage/cfile": "cfile", + "internal/coverage/cformat": "cformat", + "internal/coverage/cmerge": "cmerge", + "internal/coverage/decodecounter": "decodecounter", + "internal/coverage/decodemeta": "decodemeta", + "internal/coverage/encodecounter": "encodecounter", + "internal/coverage/encodemeta": "encodemeta", + "internal/coverage/pods": "pods", + "internal/coverage/rtcov": "rtcov", + "internal/coverage/slicereader": "slicereader", + "internal/coverage/slicewriter": "slicewriter", + "internal/coverage/stringtab": "stringtab", + "internal/coverage/test": "test", + "internal/coverage/uleb128": "uleb128", + "internal/cpu": "cpu", + "internal/dag": "dag", + "internal/diff": "diff", + "internal/filepathlite": "filepathlite", + "internal/fmtsort": "fmtsort", + "internal/fuzz": "fuzz", + "internal/goarch": "goarch", + "internal/godebug": "godebug", + "internal/godebugs": "godebugs", + "internal/goexperiment": "goexperiment", + "internal/goos": "goos", + "internal/goroot": "goroot", + "internal/gover": "gover", + "internal/goversion": "goversion", + "internal/itoa": "itoa", + "internal/lazyregexp": "lazyregexp", + "internal/lazytemplate": "lazytemplate", + "internal/msan": "msan", + "internal/nettrace": "nettrace", + "internal/obscuretestdata": "obscuretestdata", + "internal/oserror": "oserror", + "internal/pkgbits": "pkgbits", + "internal/platform": "platform", + "internal/poll": "poll", + "internal/profile": "profile", + "internal/profilerecord": "profilerecord", + "internal/race": "race", + "internal/reflectlite": "reflectlite", + "internal/runtime/atomic": "atomic", + "internal/runtime/exithook": "exithook", + "internal/saferio": "saferio", + "internal/singleflight": "singleflight", + "internal/stringslite": "stringslite", + "internal/syscall/execenv": "execenv", + "internal/syscall/unix": "unix", + "internal/sysinfo": "sysinfo", + "internal/testenv": "testenv", + "internal/testlog": "testlog", + "internal/testpty": "testpty", + "internal/trace": "trace", + "internal/trace/event": "event", + "internal/trace/event/go122": "go122", + "internal/trace/internal/oldtrace": "oldtrace", + "internal/trace/internal/testgen/go122": "testkit", + "internal/trace/raw": "raw", + "internal/trace/testtrace": "testtrace", + "internal/trace/traceviewer": "traceviewer", + "internal/trace/traceviewer/format": "format", + "internal/trace/version": "version", + "internal/txtar": "txtar", + "internal/types/errors": "errors", + "internal/unsafeheader": "unsafeheader", + "internal/weak": "weak", + "internal/xcoff": "xcoff", + "internal/zstd": "zstd", + "io": "io", + "io/fs": "fs", + "io/ioutil": "ioutil", + "iter": "iter", + "log": "log", + "log/internal": "internal", + "log/slog": "slog", + "log/slog/internal": "internal", + "log/slog/internal/benchmarks": "benchmarks", + "log/slog/internal/buffer": "buffer", + "log/slog/internal/slogtest": "slogtest", + "log/syslog": "syslog", + "maps": "maps", + "math": "math", + "math/big": "big", + "math/bits": "bits", + "math/cmplx": "cmplx", + "math/rand": "rand", + "math/rand/v2": "rand", + "mime": "mime", + "mime/multipart": "multipart", + "mime/quotedprintable": "quotedprintable", + "net": "net", + "net/http": "http", + "net/http/cgi": "cgi", + "net/http/cookiejar": "cookiejar", + "net/http/fcgi": "fcgi", + "net/http/httptest": "httptest", + "net/http/httptrace": "httptrace", + "net/http/httputil": "httputil", + "net/http/internal": "internal", + "net/http/internal/ascii": "ascii", + "net/http/internal/testcert": "testcert", + "net/http/pprof": "pprof", + "net/internal/cgotest": "cgotest", + "net/internal/socktest": "socktest", + "net/mail": "mail", + "net/netip": "netip", + "net/rpc": "rpc", + "net/rpc/jsonrpc": "jsonrpc", + "net/smtp": "smtp", + "net/textproto": "textproto", + "net/url": "url", + "os": "os", + "os/exec": "exec", + "os/exec/internal/fdtest": "fdtest", + "os/signal": "signal", + "os/user": "user", + "path": "path", + "path/filepath": "filepath", + "plugin": "plugin", + "reflect": "reflect", + "reflect/internal/example1": "example1", + "reflect/internal/example2": "example2", + "regexp": "regexp", + "regexp/syntax": "syntax", + "runtime": "runtime", + "runtime/cgo": "cgo", + "runtime/coverage": "coverage", + "runtime/debug": "debug", + "runtime/internal/math": "math", + "runtime/internal/sys": "sys", + "runtime/internal/wasitest": "wasi", + "runtime/metrics": "metrics", + "runtime/pprof": "pprof", + "runtime/race": "race", + "runtime/trace": "trace", + "slices": "slices", + "sort": "sort", + "strconv": "strconv", + "strings": "strings", + "structs": "structs", + "sync": "sync", + "sync/atomic": "atomic", + "syscall": "syscall", + "testing": "testing", + "testing/fstest": "fstest", + "testing/internal/testdeps": "testdeps", + "testing/iotest": "iotest", + "testing/quick": "quick", + "testing/slogtest": "slogtest", + "text/scanner": "scanner", + "text/tabwriter": "tabwriter", + "text/template": "template", + "text/template/parse": "parse", + "time": "time", + "time/tzdata": "tzdata", + "unicode": "unicode", + "unicode/utf16": "utf16", + "unicode/utf8": "utf8", + "unique": "unique", + "unsafe": "unsafe", }