format

package
v0.0.0-...-fab57c2 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package format provides a mockable wrapper for go/format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Impl

type Impl struct{}

func (*Impl) Node

func (*Impl) Node(dst io.Writer, fset *token.FileSet, node any) error

func (*Impl) Source

func (*Impl) Source(src []byte) ([]byte, error)

type Interface

type Interface interface {
	Node(dst io.Writer, fset *token.FileSet, node any) error
	Source(src []byte) ([]byte, error)
}

Jump to

Keyboard shortcuts

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