Current mission: finish filling in the OTDs

Go

From Soyjak Wiki, the free ensoyclopedia
Jump to navigationJump to search
>Though maybe you were looking for Go back?
🍌This page is >Quotey
Contents of this page may be >quoted.
Consider bringing an arrow!
Go makes you calm.[a]

Go (or Golang) is a programming language. It offers strong concurrency features and is mostly suited for web development and was heavily influenced by C. It mainly offers a standard library suited for networking as well as "goroutines", a kind of green thread, which are very lightweight allowing for millions to be spawned with very little memory usage.

It was created by (((Google))) because pajeets are retarded and need a tard wrangling language, because Java and C++ are too powerful for interns. For a long time it did not even have generics. It also has a really retarded error handling syntax that forces you to check "if err != nil every line, instead of just using Result<T, E> like Rust or checked exceptions like Java.

Quote is apparently creating a Sharty rewrite, called "nusoi", using it.[1]

Example[edit | edit source]

package main

import (
    "fmt"
    "math/rand"
    "time"
)

// clamp restricts the value of x between min and max.
func clamp(x, min, max int) int {
    if x < min {
        return min
    } else if x > max {
        return max
    } else {
        return x
    }
}

// shouldAck determines whether the tranny should ack based on the given probability.
func shouldAck(ackProbability int) bool {
    prob := rand.Float64() * 100
    return prob < float64(clamp(ackProbability, 0, 100))
}

// Main function that decides whether to ack or scream TRANS RIGHTS ARE HUMAN RIGHTS!!!!!!!! based on probability.
func main() {
    rand.Seed(time.Now().UnixNano())
    if shouldAck(41) {
        panic("ACK!!!!")
    } else {
        fmt.Println("TRANS RIGHTS ARE HUMAN RIGHTS!!!!!!!!")
    }
}

Gallery[edit | edit source]

Notes

  1. that's subjective

Snopes

Go is part of a series on Computing

>pssttt... nusoi... use free software.

➜ /languages

├ /markup/ HTMLCSSXML
├ /low_level/ AssemblyCC++C#Holy CRust
├ /high_level/ JavaGoPHPPythonSQLBashJavaScriptPowerShellActionScriptScratchRubyLuaP
└ /tutorials/ CC++Java

➜ /software

├ /imageboards/ nusoiVichanYotsubaOpenYotsuba
├ /operating_systems/ WindowsLinuxAndroidTempleOSBSD
├ /applications/ Web BrowserPhotoshopFlashMS PaintIRC
├ /dev/ Free-software licenseGame development
└ /misc/ BabybotMcChallengeCAPTCHASystemdRAIDRicing4getSnarkysnappydoxingtool.batJS Paint

➜ /cyb

➜ /misc

├ /file_formats/ GIFMIDISVGWEBMWEBP
└ /hardware/ ThinkPadChromebooks

➜ /ai

SOYNY