MCPcopy Create free account
hub / github.com/Yihsiwei/GoFileBinder / GetCurrentDirectory

Function GetCurrentDirectory

GoFileBinder.go:177–184  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

175 }
176}
177func GetCurrentDirectory() string {
178 dir, err := filepath.Abs(filepath.Dir(os.Args[0]))
179 if err != nil {
180 log.Fatal(err)
181 }
182
183 return strings.Replace(dir, "\\", "/", -1)
184}
185func PKCS7Padding(ciphertext []byte, blocksize int) []byte {
186 padding := blocksize - len(ciphertext)%blocksize
187 padtext := bytes.Repeat([]byte{byte(padding)}, padding)

Callers 1

exitfileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected