github.com/wtfutil/wtf@v0.43.0/utils/init.go (about)

     1  package utils
     2  
     3  // OpenFileUtil defines the system utility to use to open files
     4  var OpenFileUtil = "open"
     5  var OpenUrlUtil = []string{}
     6  
     7  // Init initializes global settings in the wtf package
     8  func Init(openFileUtil string, openUrlUtil []string) {
     9  	OpenFileUtil = openFileUtil
    10  	OpenUrlUtil = openUrlUtil
    11  }