openGemini / opengemini-client-go

CNCF openGemini Go Client Library
https://opengemini.org/
Apache License 2.0
24 stars 17 forks source link

code style problem #91

Closed YH-Wang000 closed 4 months ago

YH-Wang000 commented 4 months ago

https://github.com/openGemini/opengemini-client-go/blob/49423902a3ca16ac35fa57265f70914d470a964d/opengemini/point.go#L81

代码风格更像java而不是go,可导出变量的赋值推荐使用字面量,使用也建议直接使用

shoothzj commented 4 months ago

Is there any offical docs or sample codes related to this?

YH-Wang000 commented 4 months ago

https://go.dev/doc/effective_go search keyword ”setter“ in web page

shoothzj commented 4 months ago

@YH-Wang000 make sense, Would you be willing to assist in fixing this issue?