Fork自 KubeSphere / kubesphere
体验新版 GitCode,发现更多精彩内容 >>
package notification type NotificationOptions struct { Endpoint string } func NewNotificationOptions() *NotificationOptions { return &NotificationOptions{ Endpoint: "", } } func (s *NotificationOptions) ApplyTo(options *NotificationOptions) {
if options == nil { options = s return }
if s.Endpoint != "" { options.Endpoint = s.Endpoint } }