/explore

Click through on any links that interest you or select the planets on the right to continue exploring the Outer Web.
You are here

adsecurity.org
| | fernandocorreia.dev

This is part 9 of my journey learning Golang. Data types are a designation by a programming language about the kind of values that are being stored. Go has
13.5 parsecs

Travel
| |
| | arnorhs.dev

I read somewhere that a bitwise left shift was a faster method of removing a fraction of a floating point number in Javascript than using parseInt or Math.floor(). I wasn't surprised that parseInt was slow, since I think it parses the number as a string, but the left shift being faster than Math.floor() was a bit more puzzling to me. So I decided to make a JSPerf test to compare those three methods. Read on for the full results
12.6 parsecs

Travel
| |
| | golangbot.com

Go has support for boolean, float, integer, complex and string types. This tutorial focuses on how to use each type and also the conversion from one type to another.
13.7 parsecs

Travel
| |
| | hjr265.me

I know many will start with something like Gin whenever they are working on a JSON/HTTP-based backend in Go. I, not entirely sure if the minority, try to stick to Go's built-in net/http package and, at most, use Gorilla Mux in most of my Go projects. And so serving something simple like JSON is no different from the package's point of view as any other content type: whatever it is, write it out to the w, the http.
33.4 parsecs

Travel
|