Why does my type's String() method not get called when printing a struct field?

前端 未结 0 1086
名媛妹妹
名媛妹妹 2021-01-30 07:00

I have a type called Password that is simply a string. I\'d like to implement the Stringer interface by providing a String() method that redacts the value.

// Pas         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题