golang

package
v0.0.0-...-92480ce Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(a, b io.Reader) bool

func EqualString

func EqualString(a, b string) bool

func Format

func Format(src []byte) ([]byte, error)

Format formats golang codein the cannonical way. It is just a wrapper around github.com/golang/go/format@Source

https://github.com/golang/go/blob/master/src/go/format/format.go

func ShouldWriteFile

func ShouldWriteFile(filename string, content []byte) bool

ShouldWriteFile returns true of the contents of the file and the given data represent and effectively different script. In other words, if the file and the content are the same, then do not overwrite the file

Types

This section is empty.

Jump to

Keyboard shortcuts

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