golangã§ãã¹ãã®ããã ãã«interfaceãæ¸ãã®ãæ»ã¬ã»ã©å«ã ã£ãã®ã§ç·¨ã¿åºããæãç´¹ä»ãã¾ãã TL;DR ãã¹ã(=mock)ã®ããã ãã«interfaceã¯åããããªã åã¨ã¤ãªã¢ã¹ã¨ãã«ãã¿ã°ãçµã¿åãããã¨interfaceããªãã¦ãã¢ãã¯ãä½ãã ãã®ææ³ã«å¿ è¦ãªã¢ãã¯ãèªåçæããããã°ã©ã ãä½ã£ã interfaceã¯æ¬å½ã«å¿ è¦ãªã·ã¼ã³ã§ä½¿ãã¹ã Background ç¾å¨ã¢ãã¯ã使ã£ãåä½ãã¹ãã¯ä¸è¬çã§ãã Javaã§ã®ä¾ãæããã¨ãã¢ãã¯ãããã³ã³ãã¼ãã³ãã«ã¤ãã¦äºãinterfaceãå®ç¾©ãã¦ãããã¢ãã¯ã§ã¯ãã®ã¤ã³ã¿ã¼ãã§ã¼ã¹ãå®è£ ããã®ãå®ç³ã§ãã ãããgolangã®interfaceã¯Javaãªã©ã®ããã¨ã¯è¥å¹²æ§è³ªãç°ãªãããããã¹ã=ã¢ãã¯ã®ããã ãã«interfaceãæ¸ãã®ã¯ãªã¼ãã¼ã¯ã¼ã¯æ°å³ã§ãã ãããã¹ãã®ããã ãã«interface
{{#tags}}- {{label}}
{{/tags}}