func ExampleInt() {
	fmt.Println(conv.Uint("123.456"))                
	fmt.Println(conv.Uint("-123.456"))               
	fmt.Println(conv.Uint8(uint64(math.MaxUint64)))  
}
Int conversions follow the the general numeric rules.
package conv_test
import (
	"fmt"
	"math"
	"time"
	conv "github.com/cstockton/go-conv"
)
func Example() {
	fmt.Println(conv.Int("Foo"))
	type MyString string
	fmt.Println(conv.Int(MyString("42")))  
	str := "42"
	fmt.Println(conv.Int(&str))  
	var val int
	err := conv.Infer(&val, `42`)
	fmt.Println(val, err)  
}
func ExampleBool() {
	fmt.Println(conv.Bool(true))
	fmt.Println(conv.Bool(false))
	fmt.Println(conv.Bool("T"))
	fmt.Println(conv.Bool("False"))
	fmt.Println(conv.Bool(int64(123)))
	fmt.Println(conv.Bool(int64(0)))
	fmt.Println(conv.Bool(time.Duration(123)))
	fmt.Println(conv.Bool(time.Duration(0)))
	fmt.Println(conv.Bool(time.Now()))
	fmt.Println(conv.Bool(time.Time{}))
	fmt.Println(conv.Bool(struct{ string }{""}))
}
func ExampleDuration() {
	fmt.Println(conv.Duration("1h1m100ms"))      
	fmt.Println(conv.Duration("3660100000000"))  
	fmt.Println(conv.Duration(3660100000000))  
	fmt.Println(conv.Duration("3660.10"))         
	fmt.Println(conv.Duration(float64(3660.10)))  
	fmt.Println(conv.Duration(complex(3660.10, 0)))  
	fmt.Println(conv.Duration(time.Nanosecond))  
	fmt.Println(conv.Duration(byte(1)))          
}
func ExampleFloat64() {
	fmt.Println(conv.Float64(float64(123.456)))  
	fmt.Println(conv.Float64("-123.456"))        
	fmt.Println(conv.Float64("1.7976931348623157e+308"))
}
func ExampleInfer() {
	var into int
	if err := conv.Infer(into, `42`); err != nil {
		fmt.Println(err)
	}
	if err := conv.Infer(&into, `42`); err == nil {
		fmt.Println(into)
	}
	truth := new(bool)
	if err := conv.Infer(truth, `TRUE`); err != nil {
		fmt.Println("Failed!")
	}
}