Documentation ¶ Overview ¶ The `startElement` and `endElement` functions in gopl.io/ch5/outline2 (§5.5) share a global variable, `depth`. Turn them into anonymous functions that share a variable local to the outline function. Source Files ¶ View all Source files main.go Click to show internal directories. Click to hide internal directories.