pkg.re/essentialkaos/ek.10@v12.41.0+incompatible/system/procname/setprocname_windows.go (about) 1 package procname 2 3 // ////////////////////////////////////////////////////////////////////////////////// // 4 // // 5 // Copyright (c) 2022 ESSENTIAL KAOS // 6 // Apache License, Version 2.0 <https://www.apache.org/licenses/LICENSE-2.0> // 7 // // 8 // ////////////////////////////////////////////////////////////////////////////////// // 9 10 import ( 11 "errors" 12 ) 13 14 // ////////////////////////////////////////////////////////////////////////////////// // 15 16 var ( 17 // ❗ ErrWrongSize is returned if given slice have the wrong size 18 ErrWrongSize = errors.New("Given slice must have same size as os.Arg") 19 20 // ❗ ErrWrongArguments is returned if one of given arguments is empty 21 ErrWrongArguments = errors.New("Arguments can't be empty") 22 ) 23 24 // ////////////////////////////////////////////////////////////////////////////////// // 25 26 // ❗ Set changes current process command in process tree 27 func Set(args []string) error { 28 panic("UNSUPPORTED") 29 return nil 30 } 31 32 // ❗ Replace replaces one argument in process command 33 // 34 // WARNING: Be careful with using os.Args or options.Parse result 35 // as 'from' argument. After using this method given variable content 36 // will be replaced. Use strutil.Copy method in this case. 37 func Replace(from, to string) error { 38 panic("UNSUPPORTED") 39 return nil 40 }