flags

package
v0.0.0-...-dbed997 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2017 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Overview

Package flags implements top-level flags and the usage message for the assembler.

Index

Constants

This section is empty.

Variables

View Source
var (
	Debug      = flag.Bool("debug", false, "dump instructions as they are parsed")
	OutputFile = flag.String("o", "", "output file; default foo.o for /a/b/c/foo.s as first argument")
	PrintOut   = flag.Bool("S", false, "print assembly and machine code")
	TrimPath   = flag.String("trimpath", "", "remove prefix from recorded source file paths")
	Shared     = flag.Bool("shared", false, "generate code that can be linked into a shared library")
	Dynlink    = flag.Bool("dynlink", false, "support references to Go symbols defined in other shared libraries")
	AllErrors  = flag.Bool("e", false, "no limit on number of errors reported")
)

Functions

func Parse

func Parse()

func Usage

func Usage()

Types

type MultiFlag

type MultiFlag []string

MultiFlag allows setting a value multiple times to collect a list, as in -I=dir1 -I=dir2.

var (
	D MultiFlag
	I MultiFlag
)

func (*MultiFlag) Set

func (m *MultiFlag) Set(val string) error

func (*MultiFlag) String

func (m *MultiFlag) String() string

Jump to

Keyboard shortcuts

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