Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pquerna/ffjson
/ functions
Functions
575 in github.com/pquerna/ffjson
⨍
Functions
575
◇
Types & classes
395
↓ 1 callers
Function
parseTag
parseTag splits a struct field's json tag into its name and comma-separated options.
inception/tags.go:33
↓ 1 callers
Function
prefixIsLessThan
Is the leading prefix of b lexicographically less than s?
fflib/v1/decimal.go:219
↓ 1 callers
Function
prefixIsLessThan
Is the leading prefix of b lexicographically less than s?
fflib/v1/internal/atof.go:777
↓ 1 callers
Function
removeVendor
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 callers
Function
roundShortest
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 callers
Function
roundShortest
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 callers
Method
scanReadByte
()
fflib/v1/lexer.go:156
↓ 1 callers
Function
scanString
(s []byte, j int)
fflib/v1/reader_scan_generic.go:20
↓ 1 callers
Function
setXValue
(t *testing.T, thing interface{})
tests/ff_test.go:389
↓ 1 callers
Function
shouldInclude
(d *ast.Object)
generator/parser.go:58
↓ 1 callers
Function
tsliceString
(t *testing.T, expected string, enc string)
fflib/v1/reader_test.go:24
↓ 1 callers
Function
usage
()
ffjson.go:38
↓ 1 callers
Method
wantMarshal
(si *StructInfo)
inception/inception.go:79
↓ 1 callers
Method
wantUnmarshal
(si *StructInfo)
inception/inception.go:65
Method
AddMany
(objs []shared.InceptionType)
inception/inception.go:54
Function
AppendFloat
AppendFloat appends the string form of the floating-point number f, as generated by FormatFloat
fflib/v1/ftoa.go:41
Function
AsciiEqualFold
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
Method
AssignDecimal
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
Function
BenchmarkFFMarshalJSON
(b *testing.B)
tests/go.stripe/stripe_test.go:61
Function
BenchmarkFFMarshalJSON
(b *testing.B)
tests/goser/goser_test.go:68
Function
BenchmarkFFUnmarshalJSON
(b *testing.B)
tests/go.stripe/stripe_test.go:106
Function
BenchmarkFFUnmarshalJSON
(b *testing.B)
tests/goser/goser_test.go:115
Function
BenchmarkMarshalJSON
(b *testing.B)
tests/ff_test.go:53
Function
BenchmarkMarshalJSON
(b *testing.B)
tests/go.stripe/stripe_test.go:43
Function
BenchmarkMarshalJSON
(b *testing.B)
tests/goser/goser_test.go:49
Function
BenchmarkMarshalJSONNative
(b *testing.B)
tests/ff_test.go:71
Function
BenchmarkMarshalJSONNativePool
(b *testing.B)
tests/ff_test.go:89
Function
BenchmarkMarshalJSONNativeReuse
(b *testing.B)
tests/ff_test.go:114
Function
BenchmarkSXimpleUnmarshalNative
(b *testing.B)
tests/ff_test.go:151
Function
BenchmarkSimpleUnmarshal
(b *testing.B)
tests/ff_test.go:133
Function
BenchmarkUnmarshalJSON
(b *testing.B)
tests/go.stripe/stripe_test.go:92
Function
BenchmarkUnmarshalJSON
(b *testing.B)
tests/goser/goser_test.go:101
Method
Cats
()
tests/types/ff/everything.go:86
Method
Cats
Cats initialize a cat
tests/types/ff/everything.go:95
Method
DecodeFast
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
Method
DecodeReader
Decode the data from the supplied reader. You should expect that data is read into memory before it is decoded.
ffjson/decoder.go:61
Method
Encode
(v interface{})
fflib/v1/buffer.go:276
Function
EqualFoldRight
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
Method
Error
()
fflib/v1/internal/atoi.go:43
Method
Fatalf
(format string, args ...interface{})
tests/go.stripe/stripe_test.go:80
Method
FieldsByFirstByte
()
inception/reflect.go:68
Method
FlushTo
(out string)
inception/writerstack.go:48
Function
FormatBits
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
Function
FuzzGenerate
Fuzz tests code generation.
tests/fuzz/generator_fuzz.go:14
Function
FuzzUnmarshal
FuzzUnmarshal tests unmarshaling.
tests/fuzz/target_fuzz.go:10
Function
GenerateFiles
(goCmd string, inputPath string, outputPath string, importName string, forceRegenerate bool, resetFields bool)
generator/generator.go:26
Method
Grow
(n int)
fflib/v1/buffer.go:18
Method
Grow
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
Method
HasFeature
(f Feature)
shared/options.go:42
Method
Last
Last will return the last added write
inception/writerstack.go:24
Method
Len
()
fflib/v1/buffer.go:40
Method
Len
()
inception/inception.go:95
Method
Len
()
inception/reflect.go:45
Method
Less
(i, j int)
inception/inception.go:96
Method
Less
(i, j int)
inception/reflect.go:47
Function
MarshalFast
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
Method
MarshalJSON
MarshalJSON func
tests/ff.go:992
Method
MarshalJSON
MarshalJSON var
tests/ff.go:1006
Method
MarshalJSON
MarshalJSON func
tests/ff.go:1055
Method
MarshalJSON
MarshalJSON function
tests/goser/base/goser.go:161
Method
MarshalJSONBuf
(buf fflib.EncodingBuffer)
inception/reflect.go:115
Method
MarshalJSONBuf
(buf fflib.EncodingBuffer)
tests/ff_test.go:243
Method
MarshalJSONBuf
MarshalJSONBuf set ip to json with buf
tests/goser/ff/goser.go:168
Method
MarshalText
MarshalText func
tests/ff.go:1014
Method
MarshalText
MarshalText val
tests/ff.go:1028
Method
MarshalText
MarshalText func
tests/ff.go:1044
Function
NewBuffer
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
Function
NewBufferString
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
Function
NewCustomer
NewCustomer creates a new customer
tests/go.stripe/base/customer.go:134
Function
NewCustomer
NewCustomer creates a customer
tests/go.stripe/ff/customer.go:134
Function
NewDecoder
NewDecoder returns a reusable Decoder.
ffjson/decoder.go:36
Function
NewEncoder
NewEncoder returns a reusable Encoder. Output will be written to the supplied writer.
ffjson/encoder.go:50
Function
NewEverything
NewEverything kind of renew the world
tests/types/ff/everything.go:146
Function
NewInception
(inputPath string, packageName string, outputPath string, resetFields bool)
inception/inception.go:42
Function
NewLog
NewLog creates a new log
tests/goser/base/goser.go:177
Function
NewLog
NewLog creates a new log
tests/goser/ff/goser.go:187
Function
NewNumber
NewNumber creates a new number
tests/number/ff/number.go:31
Method
Next
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
Function
ParseFloat
(s []byte, bitSize int)
fflib/v1/bytenum.go:29
Function
ParseFloat
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
Function
ParseInt
(s []byte, base int, bitSize int)
fflib/v1/bytenum.go:62
Function
ParseInt
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
Function
Pool
Stub version of buffer_pool.go for Go 1.2, which doesn't have sync.Pool.
fflib/v1/buffer_nopool.go:7
Method
ReadByte
()
fflib/v1/reader.go:114
Method
ReadBytes
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
Method
ReadFrom
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
Method
ReadRune
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
Method
ReadString
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
Method
Reset
Reset the reader, and add new input.
fflib/v1/reader.go:52
Method
Reset
Reset the Lexer and add new input.
fflib/v1/lexer.go:130
Method
ReverseFields
()
inception/reflect.go:77
Method
Rewind
(n int)
fflib/v1/buffer.go:44
Method
Rewind
(n int)
fflib/v1/buffer.go:271
Method
RoundedInteger
Extract integer part, rounded appropriately. No guarantees about overflow.
fflib/v1/decimal.go:362
Method
SetEscapeHTML
SetEscapeHTML specifies whether problematic HTML characters should be escaped inside JSON quoted strings. The default behavior is to escape &, <, and
ffjson/encoder.go:44
Function
SimpleLetterEqualFold
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
Method
SkipField
(start FFTok)
fflib/v1/lexer.go:568
Method
String
()
fflib/v1/lexer.go:609
Method
String
()
fflib/v1/lexer.go:626
Method
String
()
fflib/v1/decimal.go:22
← previous
next →
201–300 of 575, ranked by callers