blob: cee97874eff6540f69b381722c486b5ce194a63a [file] [log] [blame]
// +build ignore
package main
import (
"fmt"
"code.google.com/p/go.tools/imports"
)
func main() {
iface := "http.Handler"
src := "package hack; var i " + iface // HL
fmt.Println(src, "\n---")
imp, _ := imports.Process("", []byte(src), nil) // HL
// ignoring errors throughout this presentation
fmt.Println(string(imp))
}