[DOCS-13739] Go driver getting started instructions do not work Created: 29/Jun/20 Updated: 29/Oct/23 Resolved: 02/Jul/20 |
|
| Status: | Closed |
| Project: | Documentation |
| Component/s: | drivers |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Rachelle Palmer | Assignee: | Christopher Cho |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Participants: | |
| Days since reply: | 3 years, 31 weeks, 6 days ago |
| Story Points: | 2 |
| Description |
Descriptionpage: https://docs.mongodb.com/drivers/go/ The example to connect to Atlas is not possible to get working, users receive a code error:
It looks like I need to read "Usage" on Github to see whats missing. Which, if I was a newer MongoDB customer this would be a pain, especially if I just wanted to test connecting or wanted quick bootstrap code like our other driver docs offer. This instruction is so barebones, _you actually have to read GitHub. _ You have to add an additional option for client in this case. Scope of changesImpact to Other DocsMVP (Work and Date)Resources (Scope or Design Docs, Invision, etc.) |
| Comments |
| Comment by Githook User [ 02/Jul/20 ] | |||||||||||||||||
|
Author: {'name': 'Chris Cho', 'email': 'chris.cho@mongodb.com', 'username': 'ccho-mongodb'}Message: Docs 13739 fix go connection (#651)
| |||||||||||||||||
| Comment by Githook User [ 02/Jul/20 ] | |||||||||||||||||
|
Author: {'name': 'Chris Cho', 'email': 'chris.cho@mongodb.com', 'username': 'ccho-mongodb'}Message: | |||||||||||||||||
| Comment by Christopher Cho [ 30/Jun/20 ] | |||||||||||||||||
|
Ecosystem Docs: https://github.com/mongodb/docs-ecosystem/pull/651 Cloud Docs: https://github.com/10gen/cloud-docs/pull/1703 Go Driver README: | |||||||||||||||||
| Comment by Divjot Arora (Inactive) [ 30/Jun/20 ] | |||||||||||||||||
|
Yes, you do have to use the client variable to silence the Go compilation error. I'd recommend changing the example to also defer a Disconnect call:
|