errutil

package
v0.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PanicOnErr

func PanicOnErr(fn any, args ...any) []any

PanicOnErr 用於處理函數調用時的錯誤,如果函數返回的錯誤不為 nil,則直接 panic fn: 要調用的函數 args: 要傳遞給函數的參數 返回值: 函數的返回值切片 需自行處理函數返回值的類型

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL