go: Simplify skipToMatched()

* remove unnecessary assignments in switch
* delete part of comment copied from a different parser
* remove redundant if check
* simplify while condition to only check nest level and EOF