func GoFmt(f *os.File) {
	fname := f.Name()
	src, err := ioutil.ReadFile(fname)
	if err != nil {
		log.Fatal(err)
	}
	src, err = format.Source(src)
	if err != nil {
		log.Fatalf("error formating sources of %q: %v\n", fname, err)
	}

	err = ioutil.WriteFile(fname, src, 0644)
	if err != nil {
		log.Fatalf("error writing back %q: %v\n", fname, err)
	}
}
// GoFmt formats a file using gofmt.
GoFmt formats a file using gofmt.
// GoFmt formats a file using gofmt .
func GoFmt(f *os.File) {
	fname := f.Name()
	src, err := ioutil.ReadFile(fname)
	if err != nil {
		log.Fatal(err)
	}
	src, err = format.Source(src)
	if err != nil {
		log.Fatalf("error formating sources of %q: %v\n", fname, err)
	}
	err = ioutil.WriteFile(fname, src, 0644)
	if err != nil {
		log.Fatalf("error writing back %q: %v\n", fname, err)
	}
}
func GoFmt ( f * os . File ) { fname := f . Name ( ) src , err := ioutil . ReadFile ( fname ) if err != nil { log . Fatal ( err ) } src , err = format . Source ( src ) if err != nil { log . Fatalf ( " \n " , fname , err ) } err = ioutil . WriteFile ( fname , src , 0644 ) if err != nil { log . Fatalf ( " \n " , fname , err ) } }
GoFmt formats a file using gofmt.
GoFmt formats a file using gofmt .