Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnsupported = errors.New("unsupported")
Functions ¶
Types ¶
type ConverterConfig ¶
type ConverterConfig struct { // ImportNameResolver function to get the actual import name. // Because converting works at function level, only the caller knows actual name of the import. ImportNameResolver ImportNameResolver // NamePrefix prefix added to all new local variables. Must be reasonably unique NamePrefix string // SsaValueRemap is used to replace ssa.Value with the specified ssa.Expr. // Note: Replacing ssa.Expr does not guarantee the correctness of the generated code. // When using it, strictly adhere to the value types. SsaValueRemap map[ssa.Value]ast.Expr }
func DefaultConfig ¶
func DefaultConfig() *ConverterConfig
Click to show internal directories.
Click to hide internal directories.