栏目分类:
子分类:
返回
名师互学网用户登录
快速导航关闭
当前搜索
当前分类
子分类
实用工具
热门搜索
名师互学网 > IT > 面试经验 > 面试问答

可以在运动场中进口哪些包裹?

面试问答 更新时间: 发布时间: IT归档 最新发布 模块sitemap 名妆网 法律咨询 聚返吧 英语巴士网 伯小乐 网商动力

可以在运动场中进口哪些包裹?

about
操场上按钮给出了一些提示:

除了一些例外,游乐场可以使用大多数标准库。

通过 标准库 中的封装 标准库 的意思,这是上市的 软件包 页面,根据
标准库
部分。
其他
部分下列出的软件包不符合要求(这是您尝试过的-
该软件包

golang.org/x/exp/ebnf
属于“
其他” 类别下列出的实验性和不推荐使用的软件包)。

如果您想进一步了解Playground实施,则必须阅读该链接:

围棋博客:围棋场内

这是一个详尽的运动场测试,用于导入所有标准库包,以表明它们至少可以导入,但这并不意味着可以合理地使用它们中的所有( 甚至任何东西
)。标准库中唯一出现编译错误的软件包是

runtime/cgo
;
出于明显的原因,不包含没有可构建Go源文件的“软件包”(因为如果文件夹不包含至少一个可构建Go源文件,则该文件夹不是软件包)。

这是Playground链接,您可以自己尝试。

package mainimport (    _ "archive/tar"    _ "archive/zip"    _ "bufio"    _ "bytes"    _ "compress/bzip2"    _ "compress/flate"    _ "compress/gzip"    _ "compress/lzw"    _ "compress/zlib"    _ "container/heap"    _ "container/list"    _ "container/ring"    _ "crypto"    _ "crypto/aes"    _ "crypto/cipher"    _ "crypto/des"    _ "crypto/dsa"    _ "crypto/ecdsa"    _ "crypto/elliptic"    _ "crypto/hmac"    _ "crypto/md5"    _ "crypto/rand"    _ "crypto/rc4"    _ "crypto/rsa"    _ "crypto/sha1"    _ "crypto/sha256"    _ "crypto/sha512"    _ "crypto/subtle"    _ "crypto/tls"    _ "crypto/x509"    _ "crypto/x509/pkix"    _ "database/sql"    _ "database/sql/driver"    _ "debug/dwarf"    _ "debug/elf"    _ "debug/gosym"    _ "debug/macho"    _ "debug/pe"    _ "debug/plan9obj"    _ "encoding"    _ "encoding/ascii85"    _ "encoding/asn1"    _ "encoding/base32"    _ "encoding/base64"    _ "encoding/binary"    _ "encoding/csv"    _ "encoding/gob"    _ "encoding/hex"    _ "encoding/json"    _ "encoding/pem"    _ "encoding/xml"    _ "errors"    _ "expvar"    _ "flag"    _ "fmt"    _ "go/ast"    _ "go/build"    _ "go/constant"    _ "go/doc"    _ "go/format"    _ "go/importer"    _ "go/parser"    _ "go/printer"    _ "go/scanner"    _ "go/token"    _ "go/types"    _ "hash"    _ "hash/adler32"    _ "hash/crc32"    _ "hash/crc64"    _ "hash/fnv"    _ "html"    _ "html/template"    _ "image"    _ "image/color"    _ "image/color/palette"    _ "image/draw"    _ "image/gif"    _ "image/jpeg"    _ "image/png"    _ "index/suffixarray"    _ "io"    _ "io/ioutil"    _ "log"    _ "log/syslog"    _ "math"    _ "math/big"    _ "math/cmplx"    _ "math/rand"    _ "mime"    _ "mime/multipart"    _ "mime/quotedprintable"    _ "net"    _ "net/http"    _ "net/http/cgi"    _ "net/http/cookiejar"    _ "net/http/fcgi"    _ "net/http/httptest"    _ "net/http/httputil"    _ "net/http/pprof"    _ "net/mail"    _ "net/rpc"    _ "net/rpc/jsonrpc"    _ "net/smtp"    _ "net/textproto"    _ "net/url"    _ "os"    _ "os/exec"    _ "os/signal"    _ "os/user"    _ "path"    _ "path/filepath"    _ "reflect"    _ "regexp"    _ "regexp/syntax"    _ "runtime"    // _ "runtime/cgo"  // ERROR: missing Go type information  // for global symbol: .dynsym size 60    _ "runtime/debug"    _ "runtime/pprof"    _ "runtime/race"    _ "runtime/trace"    _ "sort"    _ "strconv"    _ "strings"    _ "sync"    _ "sync/atomic"    _ "syscall"    _ "testing"    _ "testing/iotest"    _ "testing/quick"    _ "text/scanner"    _ "text/tabwriter"    _ "text/template"    _ "text/template/parse"    _ "time"    _ "unipre"    _ "unipre/utf16"    _ "unipre/utf8"    _ "unsafe")func main() {    println("ok")}


转载请注明:文章转载自 www.mshxw.com
本文地址:https://www.mshxw.com/it/409594.html
我们一直用心在做
关于我们 文章归档 网站地图 联系我们

版权所有 (c)2021-2022 MSHXW.COM

ICP备案号:晋ICP备2021003244-6号