var httpMethods … var namespaces … var CmdLogsGenerator … var linesTotal … var duration … func init() { … } // Outputs linesTotal lines of logs to stdout uniformly for duration func generateLogs(cmd *cobra.Command, args []string) { … } // Generates apiserver-like line with average length of 100 symbols func generateLogLine(id int) string { … }