func main() { fmt.Println("Start") package1.Write(os.Stdout) package2.Write(os.Stdout) fmt.Println("Writing all inside package3") package3.Write(os.Stdout) }
func Write(writer io.Writer) { package1.Write(writer) package2.Write(writer) package4.Write(writer) }