github.com/lmorg/murex@v0.0.0-20240217211045-e081c89cd4ef/config/defaults/profile.go (about)

     1  package defaults
     2  
     3  import "strings"
     4  
     5  var murexProfile []string
     6  
     7  // AppendProfile is used as a way of creating a platform specific default
     8  // profile generated at compile time
     9  func AppendProfile(block string) {
    10  	murexProfile = append(murexProfile, "\n"+block+"\n")
    11  }
    12  
    13  type DefaultProfileT struct {
    14  	Name  string
    15  	Block []byte
    16  }
    17  
    18  var DefaultProfiles []*DefaultProfileT
    19  
    20  func AddMurexProfile() {
    21  	DefaultProfiles = append(DefaultProfiles, &DefaultProfileT{
    22  		Name:  "profile",
    23  		Block: []byte(strings.Join(murexProfile, "\n\n")),
    24  	})
    25  }