Documentation ¶ Index ¶ func Fix(in io.Reader) (io.Reader, error) func FixFile(filename string, dryrun bool) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Fix ¶ func Fix(in io.Reader) (io.Reader, error) Fix takes a reader that represents a go source file, and returns a reader with integer for loops changed to range statements. If no for loops are able to converted, returns a nil reader and nil error. func FixFile ¶ func FixFile(filename string, dryrun bool) error Fix integer loops into ranges for a given file, skipping actually editing the file if dryrun is set. Types ¶ This section is empty. Source Files ¶ View all Source files fix.go Click to show internal directories. Click to hide internal directories.