MCPcopy Create free account

hub / github.com/pquerna/ffjson / functions

Functions575 in github.com/pquerna/ffjson

↓ 1 callersFunctionparseTag
parseTag splits a struct field's json tag into its name and comma-separated options.
inception/tags.go:33
↓ 1 callersFunctionprefixIsLessThan
Is the leading prefix of b lexicographically less than s?
fflib/v1/decimal.go:219
↓ 1 callersFunctionprefixIsLessThan
Is the leading prefix of b lexicographically less than s?
fflib/v1/internal/atof.go:777
↓ 1 callersFunctionremoveVendor
removeVendor removes everything before and including a '/vendor/' substring in the package path. This is needed becuase that full path can't be used i
inception/decoder.go:289
↓ 1 callersFunctionroundShortest
Round d (= mant * 2^exp) to the shortest number of digits that will let the original floating point value be precisely reconstructed. Size is origina
fflib/v1/ftoa.go:228
↓ 1 callersFunctionroundShortest
Round d (= mant * 2^exp) to the shortest number of digits that will let the original floating point value be precisely reconstructed. Size is origina
fflib/v1/internal/ftoa.go:229
↓ 1 callersMethodscanReadByte
()
fflib/v1/lexer.go:156
↓ 1 callersFunctionscanString
(s []byte, j int)
fflib/v1/reader_scan_generic.go:20
↓ 1 callersFunctionsetXValue
(t *testing.T, thing interface{})
tests/ff_test.go:389
↓ 1 callersFunctionshouldInclude
(d *ast.Object)
generator/parser.go:58
↓ 1 callersFunctiontsliceString
(t *testing.T, expected string, enc string)
fflib/v1/reader_test.go:24
↓ 1 callersFunctionusage
()
ffjson.go:38
↓ 1 callersMethodwantMarshal
(si *StructInfo)
inception/inception.go:79
↓ 1 callersMethodwantUnmarshal
(si *StructInfo)
inception/inception.go:65
MethodAddMany
(objs []shared.InceptionType)
inception/inception.go:54
FunctionAppendFloat
AppendFloat appends the string form of the floating-point number f, as generated by FormatFloat
fflib/v1/ftoa.go:41
FunctionAsciiEqualFold
asciiEqualFold is a specialization of bytes.EqualFold for use when s is all ASCII (but may contain non-letters) and contains no special-folding letter
fflib/v1/fold.go:87
MethodAssignDecimal
AssignDecimal sets f to an approximate value mantissa*10^exp. It returns true if the value represented by f is guaranteed to be the best approximation
fflib/v1/extfloat.go:262
FunctionBenchmarkFFMarshalJSON
(b *testing.B)
tests/go.stripe/stripe_test.go:61
FunctionBenchmarkFFMarshalJSON
(b *testing.B)
tests/goser/goser_test.go:68
FunctionBenchmarkFFUnmarshalJSON
(b *testing.B)
tests/go.stripe/stripe_test.go:106
FunctionBenchmarkFFUnmarshalJSON
(b *testing.B)
tests/goser/goser_test.go:115
FunctionBenchmarkMarshalJSON
(b *testing.B)
tests/ff_test.go:53
FunctionBenchmarkMarshalJSON
(b *testing.B)
tests/go.stripe/stripe_test.go:43
FunctionBenchmarkMarshalJSON
(b *testing.B)
tests/goser/goser_test.go:49
FunctionBenchmarkMarshalJSONNative
(b *testing.B)
tests/ff_test.go:71
FunctionBenchmarkMarshalJSONNativePool
(b *testing.B)
tests/ff_test.go:89
FunctionBenchmarkMarshalJSONNativeReuse
(b *testing.B)
tests/ff_test.go:114
FunctionBenchmarkSXimpleUnmarshalNative
(b *testing.B)
tests/ff_test.go:151
FunctionBenchmarkSimpleUnmarshal
(b *testing.B)
tests/ff_test.go:133
FunctionBenchmarkUnmarshalJSON
(b *testing.B)
tests/go.stripe/stripe_test.go:92
FunctionBenchmarkUnmarshalJSON
(b *testing.B)
tests/goser/goser_test.go:101
MethodCats
()
tests/types/ff/everything.go:86
MethodCats
Cats initialize a cat
tests/types/ff/everything.go:95
MethodDecodeFast
DecodeFast will unmarshal the data if fast unmarshal is available. This function can be used if you want to be sure the fast unmarshal is used or in t
ffjson/decoder.go:81
MethodDecodeReader
Decode the data from the supplied reader. You should expect that data is read into memory before it is decoded.
ffjson/decoder.go:61
MethodEncode
(v interface{})
fflib/v1/buffer.go:276
FunctionEqualFoldRight
equalFoldRight is a specialization of bytes.EqualFold when s is known to be all ASCII (including punctuation), but contains an 's', 'S', 'k', or 'K',
fflib/v1/fold.go:39
MethodError
()
fflib/v1/internal/atoi.go:43
MethodFatalf
(format string, args ...interface{})
tests/go.stripe/stripe_test.go:80
MethodFieldsByFirstByte
()
inception/reflect.go:68
MethodFlushTo
(out string)
inception/writerstack.go:48
FunctionFormatBits
DEPRECIATED: `scratch` is no longer used, FormatBits2 is available. FormatBits computes the string representation of u in the given base. If neg is
fflib/v1/iota.go:73
FunctionFuzzGenerate
Fuzz tests code generation.
tests/fuzz/generator_fuzz.go:14
FunctionFuzzUnmarshal
FuzzUnmarshal tests unmarshaling.
tests/fuzz/target_fuzz.go:10
FunctionGenerateFiles
(goCmd string, inputPath string, outputPath string, importName string, forceRegenerate bool, resetFields bool)
generator/generator.go:26
MethodGrow
(n int)
fflib/v1/buffer.go:18
MethodGrow
Grow grows the buffer's capacity, if necessary, to guarantee space for another n bytes. After Grow(n), at least n bytes can be written to the buffer w
fflib/v1/buffer.go:165
MethodHasFeature
(f Feature)
shared/options.go:42
MethodLast
Last will return the last added write
inception/writerstack.go:24
MethodLen
()
fflib/v1/buffer.go:40
MethodLen
()
inception/inception.go:95
MethodLen
()
inception/reflect.go:45
MethodLess
(i, j int)
inception/inception.go:96
MethodLess
(i, j int)
inception/reflect.go:47
FunctionMarshalFast
MarshalFast will marshal the data if fast marshal is available. This function can be used if you want to be sure the fast marshal is used or in testin
ffjson/marshal.go:69
MethodMarshalJSON
MarshalJSON func
tests/ff.go:992
MethodMarshalJSON
MarshalJSON var
tests/ff.go:1006
MethodMarshalJSON
MarshalJSON func
tests/ff.go:1055
MethodMarshalJSON
MarshalJSON function
tests/goser/base/goser.go:161
MethodMarshalJSONBuf
(buf fflib.EncodingBuffer)
inception/reflect.go:115
MethodMarshalJSONBuf
(buf fflib.EncodingBuffer)
tests/ff_test.go:243
MethodMarshalJSONBuf
MarshalJSONBuf set ip to json with buf
tests/goser/ff/goser.go:168
MethodMarshalText
MarshalText func
tests/ff.go:1014
MethodMarshalText
MarshalText val
tests/ff.go:1028
MethodMarshalText
MarshalText func
tests/ff.go:1044
FunctionNewBuffer
NewBuffer creates and initializes a new Buffer using buf as its initial contents. It is intended to prepare a Buffer to read existing data. It can a
fflib/v1/buffer.go:411
FunctionNewBufferString
NewBufferString creates and initializes a new Buffer using string s as its initial contents. It is intended to prepare a buffer to read an existing st
fflib/v1/buffer.go:419
FunctionNewCustomer
NewCustomer creates a new customer
tests/go.stripe/base/customer.go:134
FunctionNewCustomer
NewCustomer creates a customer
tests/go.stripe/ff/customer.go:134
FunctionNewDecoder
NewDecoder returns a reusable Decoder.
ffjson/decoder.go:36
FunctionNewEncoder
NewEncoder returns a reusable Encoder. Output will be written to the supplied writer.
ffjson/encoder.go:50
FunctionNewEverything
NewEverything kind of renew the world
tests/types/ff/everything.go:146
FunctionNewInception
(inputPath string, packageName string, outputPath string, resetFields bool)
inception/inception.go:42
FunctionNewLog
NewLog creates a new log
tests/goser/base/goser.go:177
FunctionNewLog
NewLog creates a new log
tests/goser/ff/goser.go:187
FunctionNewNumber
NewNumber creates a new number
tests/number/ff/number.go:31
MethodNext
Next returns a slice containing the next n bytes from the buffer, advancing the buffer as if the bytes had been returned by Read. If there are fewer t
fflib/v1/buffer.go:322
FunctionParseFloat
(s []byte, bitSize int)
fflib/v1/bytenum.go:29
FunctionParseFloat
ParseFloat converts the string s to a floating-point number with the precision specified by bitSize: 32 for float32, or 64 for float64. When bitSize=3
fflib/v1/internal/atof.go:550
FunctionParseInt
(s []byte, base int, bitSize int)
fflib/v1/bytenum.go:62
FunctionParseInt
ParseInt interprets a string s in the given base (2 to 36) and returns the corresponding value i. If base == 0, the base is implied by the string's p
fflib/v1/internal/atoi.go:171
FunctionPool
Stub version of buffer_pool.go for Go 1.2, which doesn't have sync.Pool.
fflib/v1/buffer_nopool.go:7
MethodReadByte
()
fflib/v1/reader.go:114
MethodReadBytes
ReadBytes reads until the first occurrence of delim in the input, returning a slice containing the data up to and including the delimiter. If ReadByte
fflib/v1/buffer.go:372
MethodReadFrom
ReadFrom reads data from r until EOF and appends it to the buffer, growing the buffer as needed. The return value n is the number of bytes read. Any e
fflib/v1/buffer.go:202
MethodReadRune
ReadRune reads and returns the next UTF-8-encoded Unicode code point from the buffer. If no bytes are available, the error returned is io.EOF. If the
fflib/v1/buffer.go:350
MethodReadString
ReadString reads until the first occurrence of delim in the input, returning a string containing the data up to and including the delimiter. If ReadSt
fflib/v1/buffer.go:399
MethodReset
Reset the reader, and add new input.
fflib/v1/reader.go:52
MethodReset
Reset the Lexer and add new input.
fflib/v1/lexer.go:130
MethodReverseFields
()
inception/reflect.go:77
MethodRewind
(n int)
fflib/v1/buffer.go:44
MethodRewind
(n int)
fflib/v1/buffer.go:271
MethodRoundedInteger
Extract integer part, rounded appropriately. No guarantees about overflow.
fflib/v1/decimal.go:362
MethodSetEscapeHTML
SetEscapeHTML specifies whether problematic HTML characters should be escaped inside JSON quoted strings. The default behavior is to escape &, <, and
ffjson/encoder.go:44
FunctionSimpleLetterEqualFold
simpleLetterEqualFold is a specialization of bytes.EqualFold for use when s is all ASCII letters (no underscores, etc) and also doesn't contain 'k', '
fflib/v1/fold.go:111
MethodSkipField
(start FFTok)
fflib/v1/lexer.go:568
MethodString
()
fflib/v1/lexer.go:609
MethodString
()
fflib/v1/lexer.go:626
MethodString
()
fflib/v1/decimal.go:22
← previousnext →201–300 of 575, ranked by callers