src/wings/struct/user_basic.wings
go-filepath src/turbine/wings
ts-filepath src/cockpit/wings
ts-import { IWingsStruct }:wings-ts-util
ts-implement IWingsStruct
# Basic info of a user.
struct UserBasic {
id int -1
username str
name str
bio str
link str
confirmed bool
}
go-func(
// GetID (istruct) - Returns the trip ID.
func (user UserBasic) GetID() int {
return user.ID
}
// SetID (istruct) - Sets the trip ID.
func (user *UserBasic) SetID(id int) {
user.ID = id
}
)