Documentation ¶
Overview ¶
Package breakcycle breaks import cycles with parl
Typically import cycles appears with parl when: — a sub-package imports symbols from parl and — parl imports symbols from the sub-package
The import cycle can be broken by introducing a third package breakcycle. — For breakcycle to be used it has to be imported — Sub-package is allowed to import from parl and from breakcycle — parl is allowed to import from breakcycle but not from sub-package — breakcycle cannot import from parl or sub-package
sub→parl→bc←sub
— breakcycle initializes first because it is imported by both parl and sub-package — parl is initialized next because it is imported by sub-package — sub-package initializes last In the time between parl and sub-package initialization, — parl symbol values are invalid
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func G0Import ¶ added in v0.4.22
func G0Import(receiver func(v interface{}))
ParlImport receives a function value from parl to receive the symbol value
func GoidExport ¶ added in v0.4.22
func GoidExport(newStackValue interface{})
GoidExport receives a symbol value from a parl sub-package
func ParlImport ¶ added in v0.4.22
func ParlImport(receiver func(v interface{}))
ParlImport receives a function value from parl to receive the symbol value
func PtimeExport ¶ added in v0.4.22
func PtimeExport(shortValue interface{})
GoidExport receives a symbol value from a parl sub-package
Types ¶
This section is empty.