Skip to content

@odino odino released this May 19, 2019 · 46 commits to master since this release

This is a bugfix release that fixes #222 through #226 (originally merged in 1.4.x).
An empty string will now not cause a panic when parsed as JSON:


⧐  "".json()
panic: runtime error: index out of range

goroutine 1 [running]:, 0x1, 0x2, 0x69714e, 0x1, 0xc000162370, 0x1, 0x1, 0x559d40, 0x5af060)
	/go/src/ +0x82e, 0x1, 0x2, 0x69714e, 0x1, 0x5b02c0, 0xc000244070, 0xc00001a5d6, 0x4, 0x0, ...)
	/go/src/ +0x1e8, 0xc000236060, 0xc0000125c0, 0x5aeea0, 0xc000236060)
	/go/src/ +0x1beb, 0xc0001ac300, 0xc0000125c0, 0x5aec60, 0xc0001ac300)
	/go/src/ +0x1636, 0xc0000125c0, 0x100, 0x7f463a89bfff)
	/go/src/ +0x9b, 0xc0001aa1a0, 0xc0000125c0, 0x7f463d0566d0, 0x0)
	/go/src/ +0x461
	/go/src/, 0x9, 0x301)
	/go/src/ +0xcb, 0x9)
	/go/src/ +0xf9*Prompt).Run(0xc0000aa100)
	/go/src/ +0x7f2, 0xc000010010, 0x5ae200, 0xc000010018)
	/go/src/ +0x263, 0x1, 0x1, 0x580ebb, 0x5)
	/go/src/ +0x326
	/go/src/ +0x94


⧐  "".json()

Assets 12
You can’t perform that action at this time.