util

package
v0.0.0-...-2b489ef Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FavoriteInsertPartialError = New(FavoritePartialError, P{"01", "强插"})
View Source
var FavoritePartialError = NewPartial(P{"Warn_1", "Warn"}, P{"01", "猜喜"})

--- 猜喜 ----

View Source
var ForceGetConfigErr = New(FavoriteInsertPartialError, P{"0001", "强插配置查询失败"})

Functions

func List2Slice

func List2Slice(list *ListNode) []int

Types

type BizError

type BizError struct {
	Parts []Partial

	Partial
	// contains filtered or unexported fields
}

func New

func New(err *BizError, p Partial) *BizError

func NewPartial

func NewPartial(p ...Partial) *BizError

func (BizError) Code

func (err BizError) Code() string

func (BizError) Msg

func (err BizError) Msg() string

type ListNode

type ListNode struct {
	Val  int
	Next *ListNode
}

func Int2List

func Int2List(ints []int) *ListNode

func Ints2Lists

func Ints2Lists(ints [][]int) []*ListNode

type P

type P struct {
	// contains filtered or unexported fields
}

func (P) Code

func (p P) Code() string

func (P) Msg

func (p P) Msg() string

type Partial

type Partial interface {
	Code() string
	Msg() string
}

Jump to

Keyboard shortcuts

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