无返回值

控制流 / 跳转语句 / return 语句

func printSomeData(printAll bool) {
    printMainData()
    if !printAll {
        return
    }
    printOtherData()
}