golang1.1 path包bug
发布时间:2020-12-16 18:59:23 所属栏目:大数据 来源:网络整理
导读:func Dir(path string) string Dir returns all but the last element of path,typically the path's directory. After dropping the final element using Split,the path is Cleaned and trailing slashes are removed. If the path is empty,Dir returns "
func Dir(path string) string Dir returns all but the last element of path,typically the path's directory. After dropping the final element using Split,the path is Cleaned and trailing slashes are removed. If the path is empty,Dir returns ".". If the path consists entirely of slashes followed by non-slash bytes,Dir returns a single slash. In any other case,the returned path does not end in a slash. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |