mirror of
https://github.com/gopherdata/gophernotes.git
synced 2025-04-22 23:36:04 +00:00
25 lines
573 B
Go
25 lines
573 B
Go
package imports
|
|
|
|
import (
|
|
"github.com/cosmos72/gomacro/base/paths"
|
|
"github.com/cosmos72/gomacro/imports"
|
|
)
|
|
|
|
type PackageUnderlying = imports.PackageUnderlying
|
|
|
|
type Package = imports.Package
|
|
|
|
type PackageMap = imports.PackageMap
|
|
|
|
// imports.Packages is a map, copying it only makes a reference
|
|
// => Packages and imports.Packages are kept in sync automatically
|
|
var Packages = imports.Packages
|
|
|
|
// used to locate this package path via reflection
|
|
type findMe struct{}
|
|
|
|
func init() {
|
|
// tell gomacro where to write import files
|
|
paths.SymbolFromImportsPackage = findMe{}
|
|
}
|