Skip to content

[Breaking Change] opt.Skip returns error

Compare
Choose a tag to compare
@otiai10 otiai10 released this 24 May 06:29
c5f0361

💥 This release includes breaking changes as follows:

  • Options.Skip(src path) function now returns (skip bool, err error)
    • If your Skip returns skip == true, we skip the src
    • If your Skip returns skip == false, we copy the src
    • If your Skip returns err != nil, we stop copying immediately.

See https://pkg.go.dev/github.com/otiai10/copy?tab=doc#Options for more information.