12345678910111213141516171819 |
- package models
- // User represents a user in the system
- type User struct {
- ID string
- Username string
- Email string
- // Other user fields
- }
- // GetID returns the user's ID
- func (u *User) GetID() string {
- return u.ID
- }
- // SetID sets the user's ID
- func (u *User) SetID(id string) {
- u.ID = id
- }
|