If you are referring to test coverage, the standard Go toolchain includes that out of the box.
But in this case you don't need to know about what paths have been executed. It will be obvious that an error path was not handled when your program does not adhere to function that is documented.