- golintの
exported %s %s returns unexported type %s, which can be annoying to useを解消したい。 - interfaceを定義して回避するのが一般的?らしい。
- structが入れ子になっていて、内側のstructにメソッドが定義されていると、
cannot call pointer methodとなり呼べない。 - pointerを返してあげれば良い。
- シングルトンの場合
exported %s %s returns unexported type %s, which can be annoying to useを解消したい。cannot call pointer methodとなり呼べない。