#!/usr/bin/env bash # # This file re-generates the sources in this directory from the Go # standard library. # set -euxo pipefail ( echo "// Code generated from the Go standard library. DO NOT EDIT" echo "// GENERATED FILE DO NOT EDIT" cat $GOROOT/src/fmt/format.go ) >format.go cp $GOROOT/src/fmt/print.go print.go patch -p0 fmtsort/"$n" done