1 // Copyright 2012-2018 Charles Banning. All rights reserved. 2 // Use of this source code is governed by a BSD-style 3 // license that can be found in the LICENSE file 4 5 package x2j 6 7 var castNanInf bool 8 9 // Cast "Nan", "Inf", "-Inf" XML values to 'float64'. 10 // By default, these values will be decoded as 'string'. 11 func CastNanInf(b bool) { 12 castNanInf = b 13 } 14