Thanks to visit codestin.com
Credit goes to github.com

Skip to content

How to import package within runtime? #7

@kokizzu

Description

@kokizzu
gofish> packages
All imported packages:
  ansi    bufio      exec      ioutil  pprof       repl     strings    testing
  ast     bytes      filepath  log     rand        runtime  sync       time   
  atomic  columnize  flag      math    reflect     scanner  syntax     token  
  big     errors     fmt       os      reflectext  sort     syscall    unicode
  binary  eval       io        parser  regexp      strconv  tabwriter  utf8   

gofish> pkg `encoding/json`
Package `encoding/json` not imported

gofish> import `encoding/json`
import `encoding/json`
^
parse error: 1:1: expected statement, found 'import'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions