i check my code, and strconv.ParseFloat(s, 64), s is a string, it is correct, but after run my program for a while, it's panic and report some output info. i cant't find why , anyone can help me
output infor: panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x4a2654] goroutine 2948735 [running]: strconv.special(0x0, 0x4, 0x0, 0x3ff2e147ae147ae1, 0x1) strconv/atof.go:48 +0x34 strconv.atof64(0x0, 0x4, 0x41421d, 0xc05323c380, 0xc05dd95ab0, 0xa) strconv/atof.go:612 +0x50 strconv.parseFloatPrefix(0x0, 0x4, 0x40, 0x3, 0xc078741b48, 0xc05dd95ab0, 0xc078741b40) strconv/atof.go:695 +0x95 strconv.ParseFloat(0x0, 0x4, 0x40, 0xa, 0xc078741bc8, 0xc05dd95a01) strconv/atof.go:683 +0x45 xxxxxx/api.handleDPriceRange(0xc01777c820) xxxxxx/api/PriceCalendar.go:1008 +0x212 xxxxxx/api.priceCalendarItemExpand(0xc016e34a80, 0xc96, 0xc96) xxxxxx/api/PriceCalendar.go:1104 +0xb9b xxxxxx/api.FlightlineRT(0xc001bd9d98, 0xc0002294f0, 0x1306020, 0xc04f1415c0, 0xc05e653a70, 0x10000c000229518, 0xc05193dc00) xxxxxx/api/external_api.go:146 +0x108 xxxxxx/api.aaa.func2(0xc04f1456b0, 0xc04f102340, 0xc05d23aa68, 0x3, 0xc05465c230, 0x63, 0xc04f13c301, 0x7, 0x0, 0x0, ...) xxxxxx/api/external_api.go:343 +0x25b created by xxxxxx/api.AppMainpage xxxxxx/api/external_api.go:330 +0x57e -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/9c672d72-7daa-4fe1-9f84-136c2eaa2065n%40googlegroups.com.