Documentation ¶
Index ¶
- func CreateFile(fullPath string) (*os.File, error)
- func FSJoin(folders ...string) (res string)
- func FSJoinSlice(folders []string) (res string)
- func FileExists(path string) bool
- func IsFullPath(path string) bool
- func Key2Slice(k interface{}) (b []byte)
- func Key2String(k interface{}) (s string)
- func PubFromPriv(priv ed25519.PrivateKey) (pub ed25519.PublicKey)
- func SafeFileRead(path string) (data []byte, err error)
- func SafeFileWrite(path string, data []byte) (err error)
- func Slice2PrivKey(s []byte) (pk ed25519.PrivateKey)
- func Slice2PubKey(s []byte) (pk ed25519.PublicKey)
- func String2CID(key string) (c cid.Cid, err error)
- func String2PrivKey(s string) (pk *ed25519.PrivateKey)
- func String2PubKey(s string) (pk ed25519.PublicKey)
- func TouchFile(absPath string) (err error)
- func Trim(s string) (ret string)
- func TryLock(lf lockfile.Lockfile) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FSJoinSlice ¶
func FileExists ¶
func IsFullPath ¶
func Key2String ¶
func Key2String(k interface{}) (s string)
func PubFromPriv ¶
func PubFromPriv(priv ed25519.PrivateKey) (pub ed25519.PublicKey)
func SafeFileRead ¶
func SafeFileWrite ¶
func Slice2PrivKey ¶
func Slice2PrivKey(s []byte) (pk ed25519.PrivateKey)
func Slice2PubKey ¶
func String2CID ¶
func String2PrivKey ¶
func String2PrivKey(s string) (pk *ed25519.PrivateKey)
func String2PubKey ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.