Skip to content

Import Go Packages

raziman edited this page Feb 18, 2021 · 1 revision

Import Go package

You can also import Go packages

strings = import("strings")

s = "this is an example"
println(strings.Split(s, " ")) // [this is an example]

Packages

  • bytes
  • encoding
  • errors
  • flag
  • fmt
  • io
  • io/ioutil
  • log
  • math
  • math/big
  • math/rand
  • net
  • net/http
  • net/http/cookiejar
  • net/url
  • os
  • os/exec
  • os/signal
  • path
  • path/filepath
  • regexp
  • runtime
  • strconv
  • strings
  • sync
  • time
Clone this wiki locally