ãã¶ãéå¼ããç¡ãããæ¢ããªãã®ããªã¨æã£ãã®ã§ path/filepath ã«ã©ãããæ©è½ãããã®ãæ¸ãã¦ããã filepath.Join 使ã£ã¦ä¸ããã / âGoè¨èªã§ã¯ãã¹ãã©ãããã©ã¼ã çã«ãã¹ã¨ãã¡ã¤ã«åãçµåããã«ã¯ï¼ | éITä¼æ¥ã«å¤ããä¸å¹´ãµã©ãªã¼ãã³ã®ITæ¥è¨â https://t.co/ehXCf0u8X9 â èªç§°mattn (@mattn_jp) October 24, 2017 ãã¹ãããã¡ã¤ã«åãå¾ã filepath.Base ã使ãã package main import ( "path/filepath" ) func main() { println(filepath.Base("C:/foo/bar")) } ãã®å ´å bar ã表示ãããã ãã¹ãããã£ã¬ã¯ããªåãå¾ã filepath.Dir ã使ãã package main impor
{{#tags}}- {{label}}
{{/tags}}