utils

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustAbsPath

func MustAbsPath(path string) string

MustAbsPath panics when the path is not absolute. This catches shallow-stack misuse (e.g., package variable init) at once, instead of returning "." which could cause catastrophic mistakes.

MustAbsPath 当路径不是绝对路径时 panic。 立即捕获浅栈误用(如包级变量初始化), 而不是悄悄返回 "." 导致灾难性错误。

Types

This section is empty.

Jump to

Keyboard shortcuts

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