kobjs

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InstanceOf

func InstanceOf[T interface{}](obj interface{}) bool

判断对象是否为指定类型

  • @temp_param T 类型
  • @param interface{} obj 变量
  • @return bool 是否为指定类型

func ObjectDump

func ObjectDump(obj interface{}) string

将对象的成员变量与成员函数 json5的格式打印

  • @return string json5字符串

func ObjectDumpWithoutFunc

func ObjectDumpWithoutFunc(obj interface{}) string

将对象的成员变量与成员函数 json5的格式打印, 不包含成员函数

  • @return string json5字符串

func ObjectToJson5

func ObjectToJson5(obj interface{}) string

将对象的成员变量与成员函数 通过beautiful json5的格式打印

  • @return string 格式化的json5字符串

func ObjectToJson5WithoutFunc

func ObjectToJson5WithoutFunc(obj interface{}) string

将对象的成员变量与成员函数, 通过beautiful json5的格式打印, 不包含成员函数

  • @return string 格式化的json5字符串

Types

This section is empty.

Jump to

Keyboard shortcuts

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