Skip to content

Instantly share code, notes, and snippets.

@stokito
Created December 6, 2024 13:02
Show Gist options
  • Save stokito/82447f9fc01aa06ef9930e2289b8dbca to your computer and use it in GitHub Desktop.
Save stokito/82447f9fc01aa06ef9930e2289b8dbca to your computer and use it in GitHub Desktop.

Revisions

  1. stokito created this gist Dec 6, 2024.
    4 changes: 4 additions & 0 deletions copy.go
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,4 @@
    func CopyDir(srcDir string, dstDir string) error {
    err := os.CopyFS(dstDir, os.DirFS(srcDir))
    return err
    }