|
You are here |
grosser.it | ||
| | | | |
cep.dev
|
|
| | | | | An experience using Go where the type system was a problem | |
| | | | |
www.4async.com
|
|
| | | | | ???????golang/x/exp???????????xerrors???????????golang/x/exp???????errors??????????????????\nPackage errors implements functions to manipulate errors. This package implements the Go 2 draft designs for error inspection and printing ?????????????????????????????????????????github.com/pkg/errors?????????????\n????error? ???????????github.com/pkg/errors??????????Go????????????????????????????\npackage main import ( "fmt" "golang.org/x/exp/xerrors" ) func raiseError() error { return xerrors.New("a new error") } func main() { err := xerrors.Errorf("raiseError: %w", raiseError()) fmt.Println(err) } ?????\nraiseError: a new error ??????????github.com/pkg/errors?????????xerrors.Errorf??????errors.Wrap???? ????????%w??????????????????????????\n???????????????????????... | |
| | | | |
golangbot.com
|
|
| | | | | This tutorial discusses how to wrap errors in Go. It also teaches how to use the Is and As functions from the error package. | |
| | | | |
anilwadghule.com
|
|
| | | Add following files [Unit] Description=Upload Janus recordings to AWS S3 After=network.target [Service] Type=oneshot User=ubuntu WorkingDirectory=/home/ubuntu/janus_recordings ExecStart=/bin/bash /usr/local/bin/upload_videos [Install] WantedBy=multi-user.target [Unit] Description=Janus S3 Upload timer [Timer] OnCalendar=*:0/1 OnBootSec=5min [Install] WantedBy= | ||