# README
Samples
Please play with the samples by editing them and running the main files:
main.go
just a starter for different playgrounds (includesasserter
tester)main-play.go
general playground based onCopyFile
and recursionmain-db-sample.go
simulates DB transaction with money transfermain-nil.go
samples and tests for logger and usingerr2.Handle
for success
Run a default playground play
mode:
go run .
[!TIP] Set a proper alias to play with samples:
alias sa='go run .'
Run the DB based version to maybe better understand how powerful the automatic error string building is:
sa -mode db
# or
go run . -mode db
You can print usage:
sa -h
# or
go run . -h
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
CopyFile copies the source file to the given destination.
No description provided by the author
TryCopyFile copies the source file to the given destination.