I had trouble finding a list of what packages may be imported in the go playground at http://play.golang.org/. I was trying to use the (apparently experimental) package for ebnf. However even a short program won't import from golang.org
(breaks on the import on line 4):
package main
import "fmt"
import "golang.org/x/exp/ebnf"
const g = `
Production = name "=" [ Expression ] "." .
Expression = Alternative { "|" Alternative } .
Alternative = Term { Term } .
Term = name | token [ "…" token ] | Group | Option | Repetition .
Group = "(" Expression ")" .
Option = "[" Expression "]" .
Repetition = "{" Expression "}" .`
func main() {
fmt.Println(g)
}
Is it stated anywhere that only base packages in golang.org/src/ would import (if that's the case)?
I'd really like to play with this experimental package and even non-experimental supplemental libraries like currency
in the playground.