walk
--
import "vimagination.zapto.org/python/walk"
Package walk provides a python type walker.
Usage
func Walk
func Walk(t python.Type, fn Handler) error
Walk calls the Handle function on the given interface for each non-nil,
non-Token field of the given python type.
type Handler
type Handler interface {
Handle(python.Type) error
}
Handler is used to process python types.
type HandlerFunc
type HandlerFunc func(python.Type) error
HandlerFunc wraps a func to implement Handler interface.
func (HandlerFunc) Handle
func (h HandlerFunc) Handle(t python.Type) error
Handle implements the Handler interface.