arg

package
v0.0.0-...-ae1ba64 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Indent

func Indent(argument any, opts ...jsons.Opt) fmt.Stringer

Indent 使用 %v 打印(实现了 fmt.Stringer 的)返回值 将会得到缩进格式的 JSON

func JSON

func JSON(argument any, opts ...jsons.Opt) fmt.Stringer

JSON 使用 %v 打印(实现了 fmt.Stringer 的)返回值 将会得到 JSON

Types

type Arg

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

func (*Arg) String

func (a *Arg) String() string

String 实现 Stringer 接口,打印自身将会返回 JSON 字符串

Jump to

Keyboard shortcuts

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