twilio / twilio-go

A Go package for communicating with the Twilio API.
MIT License
272 stars 40 forks source link

fix: documentation sample code did not compile #184

Closed pconstantinou closed 1 year ago

pconstantinou commented 1 year ago

The README.md file provides sample code that does not compile because the import declaration (github.com/twilio/twilio-go) ends with the repository nametwilio-go but the code uses the package name twilio. @see https://go.dev/ref/spec#Import_declarations

Top address this, I have updated the example code to the alias the package name to "twilio".

The sample documentation here: https://www.twilio.com/docs/libraries/go has the sample problems.

Fixes

A short description of what this PR does.

Checklist

If you have questions, please file a support ticket, or create a GitHub Issue in this repository.

claudiachua commented 1 year ago

Hi @pconstantinou , the sample code should compile as the package name for the functions is twilio. Could you provide more details, code samples, and links for what you're trying to accomplish?

pconstantinou commented 1 year ago

Sorry, my environment was screwed up. When fixed, the aliasing was not needed.