Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 333 Bytes

File metadata and controls

17 lines (15 loc) · 333 Bytes

Tips bubble & go

  • Each component in a package

  • Model is component state

  • View renders from a string

  • New for constructor (return Model)

  • Setter y getter

    func (m Model) Property() string {
           return m.Property
       }
    
     func (m *Model) SetProperty(p string){
       m.Property = p
    }