Documentation
¶
Overview ¶
tool/crypt.go
Index ¶
- Variables
- func AES128Decrypt(crypted, key, iv []byte) ([]byte, error)
- func AES128Encrypt(origData, key, iv []byte) ([]byte, error)
- func CurrentDir() (string, error)
- func DrawProgressBar(prefix string, proportion float32, width int, suffix ...string)
- func Get(url string) (io.ReadCloser, error)
- func GetContext(ctx context.Context, url string) (io.ReadCloser, error)
- func ResolveURL(base *url.URL, ref string) string
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AES128Decrypt ¶
func AES128Encrypt ¶
func CurrentDir ¶
func DrawProgressBar ¶
func GetContext ¶ added in v0.0.3
func ResolveURL ¶
ResolveURL safely resolves a relative URL against a base URL. Returns the absolute URL string if ref is absolute. Otherwise, resolves ref relative to base. If ref cannot be parsed as a URL (even relative), it returns base + ref (with proper path handling).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.