(Leaving aside the question of should you have them at all.) I have a开发者_如何学Golways preferred to just use function overloading to give you the same name for both getter and setters.