codegen

package module
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: 3 Imported by: 0

README

codegen

tools to help programs write programs in golang, shell, and beyond

TLDR;

Equal returns true if two source files are effectively the same. This means they are same ignoring whitespace and comments.

Format does some type of cannonical formatting.

more to come

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ShouldWriteFile

func ShouldWriteFile(filename string, content []byte, eq func(a, b io.Reader) bool) 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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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