File: reflect.go

package info (click to toggle)
golang-github-aws-smithy-go 1.19.0-1~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 2,680 kB
  • sloc: java: 15,917; xml: 166; sh: 131; makefile: 66
file content (24 lines) | stat: -rw-r--r-- 783 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package serde

import (
	"github.com/aws/smithy-go/document"
	"math/big"
	"reflect"
	"time"
)

// ReflectTypeOf is a structure containing various reflect.Type members that are useful
// to document Marshaler or Unmarshaler implementations.
var ReflectTypeOf = struct {
	BigFloat             reflect.Type
	BigInt               reflect.Type
	DocumentNumber       reflect.Type
	MapStringToInterface reflect.Type
	Time                 reflect.Type
}{
	BigFloat:             reflect.TypeOf((*big.Float)(nil)).Elem(),
	BigInt:               reflect.TypeOf((*big.Int)(nil)).Elem(),
	DocumentNumber:       reflect.TypeOf((*document.Number)(nil)).Elem(),
	MapStringToInterface: reflect.TypeOf((map[string]interface{})(nil)),
	Time:                 reflect.TypeOf((*time.Time)(nil)).Elem(),
}