mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
Signed-off-by: ollevche <ollevche@gmail.com> Signed-off-by: Oleksandr Levchenkov <ollevche@gmail.com>
19 lines
339 B
Go
19 lines
339 B
Go
// Copyright (c) The OpenTofu Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
// Copyright (c) 2023 HashiCorp, Inc.
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
package aesgcm
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
func Example_handlePanic() {
|
|
_, err := handlePanic(func() ([]byte, error) {
|
|
panic("Hello world!")
|
|
})
|
|
fmt.Printf("%v", err)
|
|
// Output: Hello world!
|
|
}
|