mastodon.zunda.ninja is one of the many independent Mastodon servers you can use to participate in the fediverse.
Zundon is a single user instance as home of @zundan as well as a test bed for changes of the code.

Administered by:

Server stats:

1
active users

zunda

くっそーやっぱりGoのたぶんinterfaceを理解できていなーい

func 関数名(仮引数) *返り型 {
return &別の関数名{
オブジェクトリテラル?
}
}

で何が返ってるのかよくわからないんだよな…

や、インターフェースを満たすオブジェクトを作ってそれへの参照を返してたりするのかな。Rustではないので貸し借りは考えなくていいハズ

@zundan 「return &別の関数名」ってとこ、関数じゃなくて構造体じゃないですか?

@osa_k はい〜!! 関数名と思いこんでいたので構造を理解できなかったみたいです。