MCPcopy Index your code
hub / github.com/coder/coder / stripGenPreamble

Function stripGenPreamble

scripts/migrate-test/main.go:144–146  ·  view source on GitHub ↗
(bs []byte)

Source from the content-addressed store, hash-verified

142}
143
144func stripGenPreamble(bs []byte) []byte {
145 return regexp.MustCompile(`(?im)^(-- Code generated.*DO NOT EDIT.)$`).ReplaceAll(bs, []byte{})
146}
147
148func checkMigrateVersion(conn *sql.DB) (int, error) {
149 var version int

Callers 1

mainFunction · 0.85

Calls 1

MustCompileMethod · 0.80

Tested by

no test coverage detected