basic

package
v0.0.0-...-1e7f4ca Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NullT

func NullT[T Object]() T

func NumString

func NumString[T Numbers](t T) string

转换num为 string

func ObjectEqual

func ObjectEqual(a, b Object) bool

*

  • 比较两个objec是否相同

Types

type ComObj

type ComObj comparable

type Consumer

type Consumer[T Object] interface {

	/**
	 * Performs this operation on the given argument.
	 *
	 * @param t the input argument
	 */
	Accept(t T)
}

type Numbers

type Numbers interface {
	~byte | ~int8 | ~int16 | ~uint16 | ~int | ~uint | ~int32 | ~uint32 | ~int64 | ~uint64
}

type Object

type Object interface{}

定义抽象类跟类

Jump to

Keyboard shortcuts

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