åç·¨ã®ç¶ãã§ãã ååã®ãã¶ãã¿ããGoogleæ¤ç´¢ãä¾ã«é©ç¨ãã¾ãããã¨ãã話ã Google 1.0 ã¾ãã¯ä¸¦è¡å¦çãå ¥ã£ã¦ããªãããã®ã¾ã¾é次å¦çã®ä¾ã§ãã ããã¼ã®æ¤ç´¢é¢æ°type Search func(query string) Resultãè¿ããfakeSearché¢æ°ãä½ã£ã¦ããã¾ãã ããã¼ã®æ¤ç´¢é¢æ°Searchã¯ãtime.Sleepã§ä¸å®æéã¹ãªã¼ããã¦ãæ¤ç´¢ãã¦ããããªããã¾ãã package fake import ( "fmt" "math/rand" "time" ) var ( Web = fakeSearch("web") Image = fakeSearch("image") Video = fakeSearch("video") ) type Search func(query string) Result func fakeSearch(kind
{{#tags}}- {{label}}
{{/tags}}