ããã«ã¡ã¯ã@yoheiMuneã§ãã ä»æ¥ã¯ã©ã¤ããªãã¿ã§ãããGoè¨èªã§ç°å¢å¤æ°ããå¤ãåå¾ããããå¤ãè¨å®ãããããæ¹æ³ãããã°ã«æ¸ãããã¨æãã¾ãã ç°å¢å¤æ°ãåå¾ãã Goè¨èªã§ç°å¢å¤æ°ã«ã¢ã¯ã»ã¹ããã«ã¯osããã±ã¼ã¸ãå©ç¨ãã¾ããå ·ä½çã«ã¯ä»¥ä¸ã®ããã«å®è£ ãã¾ãã // ç°å¢å¤æ°ããå¤ãåå¾ãã key := os.Getenv("MY_API_KEY") os.Getenvã¯æååãè¿ãã®ã§ãåå¾ã§ããã°ãã®å¤ããåå¾ã§ããªããã°ç©ºæåãè¿ãã¾ãã ç°å¢å¤æ°ãè¨å®ãã ç°å¢å¤æ°ãè¨å®ãããã¨ãã§ãã¾ãã以ä¸ã®ããã«å®è£ ãã¾ãã // ç°å¢å¤æ°ãè¨å®ãã¾ã. os.Setenv("GOOGLE_APPLICATION_CREDENTIALS", "/etc/gcp/auth.json") ç´æçã§åãããããã§ããããããªæãã«ç°å¢å¤æ°ãè¨å®ã§ãã¾ãã æå¾ã« ä»æ¥ã¯ã©ã¤ããªã
{{#tags}}- {{label}}
{{/tags}}