package main

import (
	"io"
	"os"

	"mvdan.cc/gofumpt/format"
)

func main() {
	orig, err := io.ReadAll(os.Stdin)
	if err != nil {
		panic(err)
	}
	formatted, err := format.Source(orig, format.Options{
		LangVersion: "go1.16",
	})
	if err != nil {
		panic(err)
	}
	os.Stdout.Write(formatted)
}
