Re-organisation. Added file utility to calculate upload/download slot count by connection speed (we should probably add a config value in the file server to override this, but it's good for people who are lazy)

This commit is contained in:
2025-08-31 22:59:58 +01:00
parent 81c0625d27
commit dfb075a4bf
6 changed files with 69 additions and 5 deletions

17
global/global_test.go Normal file
View File

@@ -0,0 +1,17 @@
package global
import (
"fmt"
"testing"
)
func TestGenerateRandomString(t *testing.T) {
fmt.Println("Test: 8 chars")
fmt.Println(GenerateRandomString(8))
fmt.Println("Test: 10 chars")
fmt.Println(GenerateRandomString(10))
fmt.Println("Test: 15 chars")
fmt.Println(GenerateRandomString(15))
fmt.Println("Test: 30 chars")
fmt.Println(GenerateRandomString(30))
}