| // Copyright 2019 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| // Command makestatic writes the generated file "static.go". |
| // It is intended to be invoked via "go generate" (directive in "release.go"). |
| b, err := ioutil.ReadFile("releaselet.go") |
| log.Fatalf("error reading releaselet.go: %v\n", err) |
| fmt.Fprintf(&buf, `// Copyright 2019 The Go Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style |
| // license that can be found in the LICENSE file. |
| // Code generated by makestatic.go; DO NOT EDIT. |
| err = ioutil.WriteFile("static.go", buf.Bytes(), 0644) |
| log.Fatalf("error writing static.go: %v\n", err) |