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:
brent s
2021-11-21 18:07:52 -05:00
parent a6f4afe491
commit 5975b5ed5c
19 changed files with 644 additions and 442 deletions

14
secret_funcs.go Normal file
View File

@@ -0,0 +1,14 @@
package libsecret
// NewSecret returns a pointer to a new Secret based on a Session, parameters, (likely an empty byte slice), a value, and the MIME content type.
func NewSecret(session *Session, params []byte, value []byte, contentType string) (secret *Secret) {
secret = &Secret{
Session: session.Path(),
Parameters: params,
Value: value,
ContentType: contentType,
}
return
}