2019-08-17から1日間の記事一覧
interface呼び出しのパフォーマンスが気になったので ついでに値レシーバとポインタレシーバの比較もしてみた package main import ( "fmt" "time" ) type IHoge interface { Print() } type HogeImpl struct { num int } func (s *HogeImpl) Print() { //fm…
interface呼び出しのパフォーマンスが気になったので ついでに値レシーバとポインタレシーバの比較もしてみた package main import ( "fmt" "time" ) type IHoge interface { Print() } type HogeImpl struct { num int } func (s *HogeImpl) Print() { //fm…