Does not compile
未關閉
適合新手
help wanted
- 主要語言
- Go
- 星號
- 31
- 分支
- 26
- PR 合併指標
- 30 天內沒有已合併 PR
描述
None of the examples currently work. The error is from the connection line:
```GO
client := documentdb.New("connection-url", documentdb.Config{"master-key"})
```
`cannot use "master-key" (type string) as type *documentdb.Key in field value`
Shouldn't we be passing a `*documentdb.Key` instead of string?
貢獻指南
這個儲存庫沒有索引到貢獻指南
研究方向
Look at the documentdb package's New function signature and the Key type definition. The example code passes a string where a *documentdb.Key is expected. Check the package's documentation or source to see how to create a Key. The fix likely involves updating the example to use documentdb.NewKey or a similar constructor. Verify by trying to compile the corrected example.
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- go
- 領域
- backend, databases
- Issue 類型
- 缺陷
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 活躍度
- 停滯
- 描述清晰度
- 描述清楚
- 新手友好度
- 65/100