v0.0.1 is now done.
Cleaned up file naming/organization, optimized some things like using preallocated indexed slices instead of appends, etc.
This commit is contained in:
16
funcs.go
Normal file
16
funcs.go
Normal file
@@ -0,0 +1,16 @@
|
||||
package libsecret
|
||||
|
||||
import (
|
||||
`strings`
|
||||
|
||||
`github.com/godbus/dbus`
|
||||
)
|
||||
|
||||
// isPrompt returns a boolean that is true if path is/requires a prompt(ed path) and false if it is/does not.
|
||||
func isPrompt(path dbus.ObjectPath) (prompt bool) {
|
||||
|
||||
prompt = strings.HasPrefix(string(path), PromptPrefix)
|
||||
|
||||
return
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user