Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrImportCycleNotAllowed = errors.New("import cycle not allowed")
ErrImportCycleNotAllowed defines an error for circular importing
Functions ¶
This section is empty.
Types ¶
type ImportStack ¶
type ImportStack []string
ImportStack a stack of import paths
func New ¶
func New() *ImportStack
func (*ImportStack) List ¶
func (s *ImportStack) List() []string
func (*ImportStack) Pop ¶
func (s *ImportStack) Pop()
func (*ImportStack) Push ¶
func (s *ImportStack) Push(p string) error
Click to show internal directories.
Click to hide internal directories.