jsonc

package
v0.1.24 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ESCAPE   = 92 // 转义字符'\'
	QUOTE    = 34 // 双引号'"'
	NEWLINE  = 10 // 换行符'\n'
	ASTERISK = 42 // 星号'*'
	SLASH    = 47 // 斜线'/'
	HASH     = 35 // 井号'#'
	CARRIAGE = 13 // 回车符'\r'
)

定义常量

Variables

This section is empty.

Functions

func TrimComment

func TrimComment(ctx context.Context, from <-chan rune, to chan<- rune) error

func TrimCommentWrapper

func TrimCommentWrapper(s []rune) []rune

TrimCommentWrapper 函数处理字节数组,主要是处理注释并返回新的字节数组\

Types

This section is empty.

Jump to

Keyboard shortcuts

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