Pair program on a Go project, then leave a review and describe how you would improve the code.
Implement review_go_code(code) to analyze a Go source string. Return an array of findings with 1-based line numbers and messages, ordered by line. Report TODO: markers as TODO requires follow-up, calls containing panic( as Avoid panic in production code, and repeated non-comment lines as Duplicate code line. Ignore blank lines, comments, and the text TODO ignored.
def review_go_code(code):