profile-edit-traverse #199

Merged
lash merged 26 commits from profile-edit-traverse into master 2024-12-05 16:37:37 +01:00
Showing only changes of commit 944fa89b3c - Show all commits

14
models/profile.go Normal file
View File

@ -0,0 +1,14 @@
package models
type Profile struct {
ProfileItems []string
Max int
}
func (p *Profile) InsertOrShift(index int, value string) {
if index < len(p.ProfileItems) {
p.ProfileItems = append(p.ProfileItems[:index], value)
} else {
p.ProfileItems = append(p.ProfileItems, value)
}
}