dingoblog / dingo

Blog engine written in Go
MIT License
284 stars 37 forks source link

Format nil time.Time's without panicking #83

Closed bentranter closed 6 years ago

bentranter commented 6 years ago

Fixes #82

Updates the DateFormat function to return an empty string if the provided *time.Time is nil, instead of panicking.

dinever commented 6 years ago

Thank you! @bentranter

Seems that the build for Go 1.10 failed 🤔

bentranter commented 6 years ago

Yeah, I'm fixing it right now, have to install Go 1.10 first before I can fix it though 😛

dinever commented 6 years ago

Yeah, for managing different Go versions I recommend using https://github.com/moovweb/gvm#installing

bentranter commented 6 years ago

@dinever thanks for the suggestion! I'll try that out next time I need to use a different version

dinever commented 6 years ago

@bentranter Thanks for the contribution! It's merged.