go

                   simple, fast, safe, concurrent, fun
  1. Code
  2. Search
  3. Subscribe
  4. Archive
  5. Random

explorations into google's new language by nick quaranto

Newer
Older
  • go-repl

    Took some hacking to get working since recently in go the way to convert a String into a series of Bytes changed:

    There is one language change: the ability to convert a string to
    []byte or []int.  This deprecates the strings.Bytes and strings.Runes
    functions. You can convert your existing sources using these gofmt
    commands:
    
    gofmt -r 'strings.Bytes(x) -> []byte(x)' -w file-or-directory-list
    gofmt -r 'strings.Runes(x) -> []int(x)' -w file-or-directory-list
    
    After running these you might need to delete unused imports of the
    "strings" package.
    Fixed now and works on my machineā„¢, granted you put semicolons at the end of lines in the REPL.

    Posted on March 10, 2010 ()

Field Notes Theme. Designed by Manasto Jones. Powered by Tumblr.