aboutsummaryrefslogtreecommitdiffstats
path: root/src/u_utils.go
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-04-03 13:45:16 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2022-04-03 13:45:16 +0200
commit4861d5d761aadb875d9096a6b809f60b5ee9e4e6 (patch)
tree7d22f1a0fe243493d18077e306d1a1064cb40da6 /src/u_utils.go
parentIts still not working (diff)
downloadgo2work-4861d5d761aadb875d9096a6b809f60b5ee9e4e6.tar.gz
go2work-4861d5d761aadb875d9096a6b809f60b5ee9e4e6.tar.bz2
go2work-4861d5d761aadb875d9096a6b809f60b5ee9e4e6.tar.xz
go2work-4861d5d761aadb875d9096a6b809f60b5ee9e4e6.tar.zst
go2work-4861d5d761aadb875d9096a6b809f60b5ee9e4e6.zip
Caps ffs
Diffstat (limited to 'src/u_utils.go')
-rw-r--r--src/u_utils.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/u_utils.go b/src/u_utils.go
index 21d7da7..b93832c 100644
--- a/src/u_utils.go
+++ b/src/u_utils.go
@@ -88,15 +88,15 @@ func get_test_time() [3]byte {
}
func choose_file(options Options) int {
- file_id := len(options.files)
- if options.random == true && file_id > 1 {
+ file_id := len(options.Files)
+ if options.Random == true && file_id > 1 {
rand.Seed(time.Now().UnixNano())
file_id = rand.Intn(file_id)
} else {
file_id = 0
}
- if check_file_exists(options.files[file_id]) == false {
- print_file_not_found(options.files[file_id])
+ if check_file_exists(options.Files[file_id]) == false {
+ print_file_not_found(options.Files[file_id])
return -1
}
return file_id