1package encoder
2
3import "context"
4
5type OptionFlag uint8
6
7const (
8	HTMLEscapeOption OptionFlag = 1 << iota
9	IndentOption
10	UnorderedMapOption
11	DebugOption
12	ColorizeOption
13	ContextOption
14)
15
16type Option struct {
17	Flag        OptionFlag
18	ColorScheme *ColorScheme
19	Context     context.Context
20}
21
22type EncodeFormat struct {
23	Header string
24	Footer string
25}
26
27type EncodeFormatScheme struct {
28	Int       EncodeFormat
29	Uint      EncodeFormat
30	Float     EncodeFormat
31	Bool      EncodeFormat
32	String    EncodeFormat
33	Binary    EncodeFormat
34	ObjectKey EncodeFormat
35	Null      EncodeFormat
36}
37
38type (
39	ColorScheme = EncodeFormatScheme
40	ColorFormat = EncodeFormat
41)
42