newChannel := &model.Channel{ Name: "my-channel", DisplayName: "My Channel", }
updatedChannel := &model.Channel{ Id: "channel-id", DisplayName: "New Display Name", }In both examples, the ChannelName struct is used as a field in a larger Channel struct. This allows for easy manipulation and access to the channel's name and display name. Overall, the github.com.mattermost/platform.model package library provides a set of useful structs for working with Mattermost data types, including channel names.