github.com/goplus/gossa@v0.3.25/cmd/qexp/stdlib.go (about)

     1  package main
     2  
     3  import (
     4  	"strings"
     5  )
     6  
     7  var (
     8  	stdList []string
     9  )
    10  
    11  func init() {
    12  	list := strings.Split(stdlib, "\n")
    13  	for _, v := range list {
    14  		if v == "" {
    15  			continue
    16  		}
    17  		if strings.Contains(v, "internal/") || strings.Contains(v, "vendor/") {
    18  			continue
    19  		}
    20  		// skip syscall
    21  		if v == "syscall" {
    22  			continue
    23  		}
    24  		stdList = append(stdList, v)
    25  	}
    26  }
    27  
    28  var stdlib string = `
    29  archive/tar
    30  archive/zip
    31  bufio
    32  bytes
    33  compress/bzip2
    34  compress/flate
    35  compress/gzip
    36  compress/lzw
    37  compress/zlib
    38  container/heap
    39  container/list
    40  container/ring
    41  context
    42  crypto
    43  crypto/aes
    44  crypto/cipher
    45  crypto/des
    46  crypto/dsa
    47  crypto/ecdsa
    48  crypto/ed25519
    49  crypto/ed25519/internal/edwards25519
    50  crypto/elliptic
    51  crypto/hmac
    52  crypto/internal/randutil
    53  crypto/internal/subtle
    54  crypto/md5
    55  crypto/rand
    56  crypto/rc4
    57  crypto/rsa
    58  crypto/sha1
    59  crypto/sha256
    60  crypto/sha512
    61  crypto/subtle
    62  crypto/tls
    63  crypto/x509
    64  crypto/x509/internal/macos
    65  crypto/x509/pkix
    66  database/sql
    67  database/sql/driver
    68  debug/dwarf
    69  debug/elf
    70  debug/gosym
    71  debug/macho
    72  debug/pe
    73  debug/plan9obj
    74  embed
    75  embed/internal/embedtest
    76  encoding
    77  encoding/ascii85
    78  encoding/asn1
    79  encoding/base32
    80  encoding/base64
    81  encoding/binary
    82  encoding/csv
    83  encoding/gob
    84  encoding/hex
    85  encoding/json
    86  encoding/pem
    87  encoding/xml
    88  errors
    89  expvar
    90  flag
    91  fmt
    92  go/ast
    93  go/build
    94  go/build/constraint
    95  go/constant
    96  go/doc
    97  go/format
    98  go/importer
    99  go/internal/gccgoimporter
   100  go/internal/gcimporter
   101  go/internal/srcimporter
   102  go/parser
   103  go/printer
   104  go/scanner
   105  go/token
   106  go/types
   107  hash
   108  hash/adler32
   109  hash/crc32
   110  hash/crc64
   111  hash/fnv
   112  hash/maphash
   113  html
   114  html/template
   115  image
   116  image/color
   117  image/color/palette
   118  image/draw
   119  image/gif
   120  image/internal/imageutil
   121  image/jpeg
   122  image/png
   123  index/suffixarray
   124  internal/bytealg
   125  internal/cfg
   126  internal/cpu
   127  internal/execabs
   128  internal/fmtsort
   129  internal/goroot
   130  internal/goversion
   131  internal/lazyregexp
   132  internal/lazytemplate
   133  internal/nettrace
   134  internal/obscuretestdata
   135  internal/oserror
   136  internal/poll
   137  internal/profile
   138  internal/race
   139  internal/reflectlite
   140  internal/singleflight
   141  internal/syscall/execenv
   142  internal/syscall/unix
   143  internal/sysinfo
   144  internal/testenv
   145  internal/testlog
   146  internal/trace
   147  internal/unsafeheader
   148  internal/xcoff
   149  io
   150  io/fs
   151  io/ioutil
   152  log
   153  log/syslog
   154  math
   155  math/big
   156  math/bits
   157  math/cmplx
   158  math/rand
   159  mime
   160  mime/multipart
   161  mime/quotedprintable
   162  net
   163  net/http
   164  net/http/cgi
   165  net/http/cookiejar
   166  net/http/fcgi
   167  net/http/httptest
   168  net/http/httptrace
   169  net/http/httputil
   170  net/http/internal
   171  net/http/pprof
   172  net/internal/socktest
   173  net/mail
   174  net/rpc
   175  net/rpc/jsonrpc
   176  net/smtp
   177  net/textproto
   178  net/url
   179  os
   180  os/exec
   181  os/signal
   182  os/signal/internal/pty
   183  os/user
   184  path
   185  path/filepath
   186  plugin
   187  reflect
   188  regexp
   189  regexp/syntax
   190  runtime
   191  runtime/cgo
   192  runtime/debug
   193  runtime/internal/atomic
   194  runtime/internal/math
   195  runtime/internal/sys
   196  runtime/metrics
   197  runtime/pprof
   198  runtime/race
   199  runtime/trace
   200  sort
   201  strconv
   202  strings
   203  sync
   204  sync/atomic
   205  syscall
   206  testing
   207  testing/fstest
   208  testing/internal/testdeps
   209  testing/iotest
   210  testing/quick
   211  text/scanner
   212  text/tabwriter
   213  text/template
   214  text/template/parse
   215  time
   216  time/tzdata
   217  unicode
   218  unicode/utf16
   219  unicode/utf8
   220  unsafe
   221  vendor/golang.org/x/crypto/chacha20
   222  vendor/golang.org/x/crypto/chacha20poly1305
   223  vendor/golang.org/x/crypto/cryptobyte
   224  vendor/golang.org/x/crypto/cryptobyte/asn1
   225  vendor/golang.org/x/crypto/curve25519
   226  vendor/golang.org/x/crypto/hkdf
   227  vendor/golang.org/x/crypto/internal/subtle
   228  vendor/golang.org/x/crypto/poly1305
   229  vendor/golang.org/x/net/dns/dnsmessage
   230  vendor/golang.org/x/net/http/httpguts
   231  vendor/golang.org/x/net/http/httpproxy
   232  vendor/golang.org/x/net/http2/hpack
   233  vendor/golang.org/x/net/idna
   234  vendor/golang.org/x/net/nettest
   235  vendor/golang.org/x/net/route
   236  vendor/golang.org/x/sys/cpu
   237  vendor/golang.org/x/text/secure/bidirule
   238  vendor/golang.org/x/text/transform
   239  vendor/golang.org/x/text/unicode/bidi
   240  vendor/golang.org/x/text/unicode/norm
   241  `