asmfmt

command
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2022 License: MIT, BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Overview

Asmfmt formats Go Assembler files. It uses tabs for indentation and blanks for alignment.

Without an explicit path, it processes the standard input. Given a file, it operates on that file; given a directory, it operates on all .go files in that directory, recursively. (Files starting with a period are ignored.) By default, asmfmt prints the reformatted sources to standard output.

Usage:

asmfmt [flags] [path ...]

The flags are:

-d
	Do not print reformatted sources to standard output.
	If a file's formatting is different than asmfmt's, print diffs
	to standard output.
-e
	Print all (including spurious) errors.
-l
	Do not print reformatted sources to standard output.
	If a file's formatting is different from asmfmt's, print its name
	to standard output.
-w
	Do not print reformatted sources to standard output.
	If a file's formatting is different from asmfmt's, overwrite it
	with asmfmt's version.

Debugging support:

-cpuprofile filename
	Write cpu profile to the specified file.

When asmfmt reads from standard input, it accepts either a full Assembler file or a program fragment. A program fragment must be a syntactically valid declaration list, statement list, or expression.

Copyright 2009 The Go Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. Modified by Klaus Post 2015 for asmfmt

Jump to

Keyboard shortcuts

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