Discover Packages
go.step.sm/crypto
internal
utils
package
Version:
v0.51.2
Opens a new window with list of versions in this module.
Published: Aug 30, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
ReadFile reads the file identified by filename and returns
the contents. If filename is equal to "-", it will read from
STDIN.
ReadPasswordFromFile reads and returns the password from the given filename.
The contents of the file will be trimmed at the right.
WriteFile writes data to a file named by filename.
If the file does not exist, WriteFile creates it with permissions perm
(before umask); otherwise WriteFile truncates it before writing.
It wraps os.WriteFile wrapping the errors.
Source Files
¶
Directories
¶
Package utfbom implements the detection of the BOM (Unicode Byte Order Mark) and removing as necessary.
Package utfbom implements the detection of the BOM (Unicode Byte Order Mark) and removing as necessary.
Click to show internal directories.
Click to hide internal directories.