Add comments

This commit is contained in:
Harshavardhana
2015-03-03 01:25:45 -08:00
parent 721ec9ef5a
commit 137584d658
10 changed files with 66 additions and 77 deletions

View File

@@ -13,6 +13,7 @@ type Date struct {
Day byte
}
// Date to string output in yyyy-mm-dd format
func (d Date) String() string {
return fmt.Sprintf("%04d-%02d-%02d", d.Year, d.Month, d.Day)
}