// Homework 14, challenge: Title block. // // Print a title with a dashed border above and below. The border must be // exactly len(title) + 6 characters long, the same as the "-- TITLE --" // row. Use strings.Repeat and len so that changing the title changes the // border automatically. // // Example output for title := "INVENTORY": // // --------------- // -- INVENTORY -- // Inside text goes here // -- INVENTORY -- // --------------- // // You need the strings package. Change the import line to: // import ( // "fmt" // "strings" // ) // // Run with: go run exercises/14/homework/04-title-block.go package main import "fmt" func main() { title := "INVENTORY" // TODO: write your code here, in place of this placeholder line: fmt.Println("TODO: replace this line", title) }