page.go (634B)
1 package page 2 3 import ( 4 "code.dwrz.net/src/cmd/web/site/entry" 5 ) 6 7 type Contact struct{} 8 9 func (p *Contact) View() string { 10 return "contact" 11 } 12 13 type CV struct{} 14 15 func (p *CV) View() string { 16 return "cv" 17 } 18 19 type Entry struct { 20 Entry *entry.Entry 21 } 22 23 func (p *Entry) View() string { 24 return "entry" 25 } 26 27 type Error struct { 28 Debug bool 29 Message string 30 RequestId string 31 Text string 32 Trace string 33 } 34 35 func (p *Error) View() string { 36 return "error" 37 } 38 39 type Home struct{} 40 41 func (p *Home) View() string { 42 return "home" 43 } 44 45 type Timeline struct { 46 Years []entry.Year 47 } 48 49 func (p *Timeline) View() string { 50 return "timeline" 51 }