It demonstrates example code which would be integrated into the godoc output. Unfortunately the test currently attempts to make a call to the live Nexmo API, and so is unsuitable for addition to our test suite (and these example functions are run during testing).
Until we find an acceptable way to include sample code in our application, this remains a demonstration of the technique.
I am not sure what more we can do with this at this point. Will revisit when we have more mock server functionality available as I think that could fit well.
This branch should not be merged.
It demonstrates example code which would be integrated into the godoc output. Unfortunately the test currently attempts to make a call to the live Nexmo API, and so is unsuitable for addition to our test suite (and these example functions are run during testing).
Until we find an acceptable way to include sample code in our application, this remains a demonstration of the technique.