ã¯ããã« time.Nowé¢æ°ãç¨ããã³ã¼ãããã¹ãããå ´åããã¹ã対象ã®ã³ã¼ãã«æ¬¡ã®ãããªå¤æ´ãå ããå¿ è¦ãããã¾ãã å¼æ°ã«ç¾å¨æå»ã渡ã ããã±ã¼ã¸å¤æ°ããã£ã¼ã«ããªã©ã«ç¾å¨æå»ãè¿ãé¢æ°ãã¤ã³ã¿ãã§ã¼ã¹ãè¨å®ãã context.WithValueé¢æ°ã§ã³ã³ããã¹ãã«ç¾å¨æå»ãè¨ãã ã©ã®æ¹æ³ãç¨ãã¦ãããã¸ã§ã¯ãã®åæããèæ ®ããå¿ è¦ãããã¾ããéä¸ã§å¤æ´ããã¨ãªãã¨ä¿®æ£ãç®æãæ¼ããªãæ¢ãåºãå¿ è¦ãããã¾ããã¾ããããã±ã¼ã¸å¤æ°ã«ç¾å¨æå»ãè¿ãé¢æ°ãè¨å®ããå ´åããã¹ãã並åã«å®è¡ãããã¨ã諦ããå¿ è¦ãåºã¦ããã§ãããã ãã®ãããªèª²é¡ã解決ããããã«ãtesttimeã¨ããã©ã¤ãã©ãªãä½æãã¾ããã ãã¹ãã®ä¸¦åå®è¡ã¨æå»ã®åºå® 次ã®ããã«ããã±ã¼ã¸å¤æ°ã使ã£ã¦time.Nowé¢æ°ã®ã©ããã¼ã®æåãå¤ãã¦ãã¹ãããææ³ãããã¾ãã var nowFunc func() tim
{{#tags}}- {{label}}
{{/tags}}