eleven26

  • Home
  • Tags100
  • Archives346
  • Table of Contents
  • Overview
  1. 1. copy
  2. 2. 安装
  3. 3. 示例

eleven26

346 posts
100 tags

copy - 递归地复制目录

Posted on 2022-08-19

copy

otiai10/copy 是一个可以让你递归地复制目录的库。

安装

1
go get github.com/otiai10/copy

示例

1
2
3
4
5
6
7
8
9
10
11
package main

import (
"fmt"
cp "github.com/otiai10/copy"
)

func main() {
err := cp.Copy("your/src", "your/dest")
fmt.Println(err) // nil
}
golang golang-library
Kubernetes dashboard 安装使用
MySQL exists 与 in 的性能及效率
© 2025 eleven26
Powered by Hexo & NexT.Mist
0%