Commit Graph

15 Commits

Author SHA1 Message Date
d70ad443e3 Merge pull request 'Add FileExists and DirExists for checking what is at a path' (#16) from clawbot/util:proposal-file-exists into master
Reviewed-on: #16
2026-09-05 05:43:52 +02:00
96e904ffd1 Merge pull request 'Add SHA256File to get the checksum of a file' (#20) from clawbot/util:proposal-sha256-file into master
Reviewed-on: #20
2026-09-05 05:43:37 +02:00
62f769ae9b add SHA256File for checksumming a file
SHA256File returns the SHA-256 digest of a file's contents as lowercase
hexadecimal, copying the file through the hash in chunks so its size does not
matter. Comes with a doc comment and table-driven tests. (closes #19)

Model: opus-5
2026-09-05 03:32:00 +00:00
9d3d35b3d7 add FileExists and DirExists for checking what is at a path
FileExists reports whether a path holds a regular file and DirExists whether it
holds a directory, both answering false for anything they cannot look at.
Comes with doc comments and table-driven tests. (closes #15)

Model: opus-5
2026-09-05 03:29:37 +00:00
9302c14a6c add function +func IsValidURL(url string) bool { 2024-06-01 15:37:51 -07:00
b9756ed8c4 rename package to util 2024-06-01 22:35:57 +00:00
2b1f2e9be3 rename package to util 2024-06-01 22:35:40 +00:00
bef8d77768 rename module path 2024-05-22 21:46:43 +00:00
e36581f205 now actually works right 2020-09-21 17:18:04 -07:00
f1397c40b1 adds time functions from unix micros/millis 2020-09-21 16:37:01 -07:00
b1f0eb2769 Merge branch 'master' of git.eeqj.de:sneak/goutil 2020-09-21 14:53:43 -07:00
5d77a9a3d3 add file copy function 2020-09-21 14:53:35 -07:00
3239644cc2 fixes bug that returns wrong error in Mkdirp() 2020-09-20 22:34:22 +00:00
cdefc88d8f bust cache 2020-03-30 15:57:16 -07:00
7fad5dc142 initial 2020-03-30 15:49:56 -07:00