irgo

package module
v0.0.0-...-2abae1c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2018 License: BSD-3-Clause Imports: 24 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

github.com/cznic/irgo has moved to modernc.org/irgo (vcs).

Please update your import paths to modernc.org/irgo.

This repo is now archived.

Documentation

Overview

Package irgo translates intermediate representations to Go. (Work In Progress)

Index

Constants

This section is empty.

Variables

View Source
var (
	// Testing amends things for tests.
	Testing bool
	// Testing hook.
	FTrace bool
)

Functions

func New

func New(out io.Writer, obj []ir.Object, types map[ir.TypeID]string, opts ...Option) (err error)

New writes Go code generated from obj to out. No package or import clause is generated. The types argument is consulted for named types.

func TODO

func TODO(msg string, more ...interface{}) string

TODO remove me.

Types

type Option

type Option func(*options) error

Option is a configuration/setup function that can be passed to the New function.

func TypeCache

func TypeCache(tc ir.TypeCache) Option

TypeCache option requests to use a shared type cache tc.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址