github.com/zerosnake0/jzon@v0.0.9-0.20230801092939-1b135cb83f7f/errors_encoder.go (about) 1 package jzon 2 3 import ( 4 "errors" 5 ) 6 7 // ErrNoAttachedWriter there is no writer attaching to the streamer 8 var ErrNoAttachedWriter = errors.New("no attached writer") 9 10 // ErrFloatIsInfinity the float to write is infinity 11 var ErrFloatIsInfinity = errors.New("float is infinity") 12 13 // ErrFloatIsNan the float to write is NaN 14 var ErrFloatIsNan = errors.New("float is NaN")