mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-05-13 16:00:47 -04:00
Signed-off-by: Janos <86970079+janosdebugs@users.noreply.github.com> Signed-off-by: Mikel Olasagasti Uranga <mikel@olasagasti.info> Signed-off-by: Christian Mesh <christianmesh1@gmail.com> Signed-off-by: James Humphries <James@james-humphries.co.uk> Co-authored-by: James Humphries <jamesh@spacelift.io> Co-authored-by: Serdar Dalgıç <serdardalgic@users.noreply.github.com> Co-authored-by: Mikel Olasagasti Uranga <mikel@olasagasti.info> Co-authored-by: Christian Mesh <christianmesh1@gmail.com>
14 lines
190 B
Go
14 lines
190 B
Go
package aesgcm
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func Example_handlePanic() {
|
|
_, err := handlePanic(func() ([]byte, error) {
|
|
panic("Hello world!")
|
|
})
|
|
fmt.Printf("%v", err)
|
|
// Output: Hello world!
|
|
}
|