format

package
v0.0.0-...-0effba1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Overview

Package format contains functionality to format a Plan document into the canonical style.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Fprint

func Fprint(w io.Writer, file *ast.File) error

Fprint writes the file to w, according to the standard style.

func SortFields

func SortFields(file *ast.File, arch types.Arch) error

SortFields ensures that the fields in each declaration are sorted into the standard order.

The list of fields, in order, includes:

- name (all) - docs (all) - field (structure) - type (enumeration, field, parameter) - padding (field) - value (enumeration) - argN (syscall) - resultN (syscall)

Types

This section is empty.

Jump to

Keyboard shortcuts

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