Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
GitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
time: ParseDuration accepts questionable inputs #7615
What does 'go version' print? go version devel +2b85dda01af0 Wed Mar 19 10:14:04 2014 -0700 linux/amd64 What steps reproduce the problem? time.ParseDuration accepts strings containing 2 or more occurrences of the same unit, such as "3h5h" (= 8 hours). The documentation is not clear whether it's valid or not. We might want to reject such strings. http://play.golang.org/p/Ay_IEwcA7D