What’s New for January 2022

We haven’t heard from you in a long time, but we haven’t abandoned the project. We are going back to work more motivated than before thanks to your support. Here’s what’s new this month: The…

Golang | Get a random number within a range

package main import ( “fmt” “math/rand” “strconv” “time” ) func random(min, max int) int { rand.Seed(time.Now().UTC().UnixNano()) return rand.Intn(max-min) + min } func main() { myrand := random(1, 91) fmt.Println(strconv.Itoa(myrand)) }

Load JavaScript files dynamically

var jsElm = document.createElement(“script”); jsElm.type = “application/javascript”; jsElm.src = “https://cdn.dotmaui.com/libs/jquery/3.6.0/jquery.min.js”; document.head.appendChild(jsElm);