goptlib could provide IsClient()/IsServer().
Currently goptlib only provides ClientSetup()/ServerSetup() that will break the pt config protocol if the desired mode happens to not be a client or server.
This makes it somewhat annoying to write obfsproxy style apps with goptlib as the application must peek at TOR_PT_[CLIENT,SERVER]_TRANSPORTS
themselves.