Sign in
go
/
website
/
abdc8f0e80195c777520d464a1f9c027a4cf9d79
/
.
/
_content
/
talks
/
2014
/
hammers
/
format.go
blob: 45e5d4913974eacd96a31794f3e9d6479ac1504b [
file
] [
log
] [
blame
]
// +build ignore
package main
import (
"fmt"
"go/format"
)
func main() {
ugly := `func (f *File) Read(p []byte, )(n int, err error, ){}`
fmt.Println(ugly)
pretty, _ := format.Source([]byte(ugly))
// HL
fmt.Println(string(pretty))
}