Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Guess the language!!!

Name: Anonymous 2012-10-27 12:38

package main
 
import (
        "big"
        "fmt"
        "os"
        "strings"
)
 
func main() {
        if len(os.Args) != 2 {
                fmt.Fprintf(os.Stderr, "Usage: %s <number>\n", os.Args[0])
                os.Exit(1)
        }
 
        number_str := strings.Replace(os.Args[1], " ", "", -1)
 
        number, ok := new(big.Int).SetString(number_str, 0)
        if !ok {
                fmt.Fprintf(os.Stderr, "Failed to convert %q to big integer.\n", number_str)
                os.Exit(1)
        }
 
        os.Stdout.Write(number.Bytes())
}

Name: Anonymous 2012-10-27 20:46

>>1

what the fuck was Rob Pike thinking with that shitty case

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List