Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
go
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
go
Commits
f9489bed
Commit
f9489bed
authored
Nov 08, 2011
by
Rob Pike
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renaming_4: gofix -r everything/but/src/pkg
R=rsc CC=golang-dev
https://golang.org/cl/5338043
parent
45e3bcb3
Changes
52
Hide whitespace changes
Inline
Side-by-side
Showing
52 changed files
with
87 additions
and
87 deletions
+87
-87
doc/codelab/wiki/final-noclosure.go
doc/codelab/wiki/final-noclosure.go
+2
-2
doc/codelab/wiki/final-noerror.go
doc/codelab/wiki/final-noerror.go
+2
-2
doc/codelab/wiki/final-parsetemplate.go
doc/codelab/wiki/final-parsetemplate.go
+2
-2
doc/codelab/wiki/final-template.go
doc/codelab/wiki/final-template.go
+2
-2
doc/codelab/wiki/final.go
doc/codelab/wiki/final.go
+2
-2
doc/codelab/wiki/get.go
doc/codelab/wiki/get.go
+1
-1
doc/codelab/wiki/htmlify.go
doc/codelab/wiki/htmlify.go
+2
-2
doc/codelab/wiki/http-sample.go
doc/codelab/wiki/http-sample.go
+1
-1
doc/codelab/wiki/index.html
doc/codelab/wiki/index.html
+1
-1
doc/codelab/wiki/notemplate.go
doc/codelab/wiki/notemplate.go
+1
-1
doc/codelab/wiki/part2.go
doc/codelab/wiki/part2.go
+1
-1
doc/codelab/wiki/srcextract.go
doc/codelab/wiki/srcextract.go
+2
-2
doc/codewalk/markov.go
doc/codewalk/markov.go
+1
-1
doc/codewalk/pig.go
doc/codewalk/pig.go
+1
-1
doc/codewalk/urlpoll.go
doc/codewalk/urlpoll.go
+1
-1
doc/progs/eff_qr.go
doc/progs/eff_qr.go
+2
-2
doc/talks/io2010/balance.go
doc/talks/io2010/balance.go
+1
-1
doc/tmpltohtml.go
doc/tmpltohtml.go
+1
-1
misc/dashboard/builder/exec.go
misc/dashboard/builder/exec.go
+1
-1
misc/dashboard/builder/http.go
misc/dashboard/builder/http.go
+3
-3
misc/dashboard/builder/main.go
misc/dashboard/builder/main.go
+1
-1
misc/goplay/goplay.go
misc/goplay/goplay.go
+3
-3
src/cmd/cgo/util.go
src/cmd/cgo/util.go
+1
-1
src/cmd/go/main.go
src/cmd/go/main.go
+1
-1
src/cmd/godoc/appinit.go
src/cmd/godoc/appinit.go
+1
-1
src/cmd/godoc/codewalk.go
src/cmd/godoc/codewalk.go
+4
-4
src/cmd/godoc/format.go
src/cmd/godoc/format.go
+1
-1
src/cmd/godoc/godoc.go
src/cmd/godoc/godoc.go
+2
-2
src/cmd/godoc/httpzip.go
src/cmd/godoc/httpzip.go
+1
-1
src/cmd/godoc/index.go
src/cmd/godoc/index.go
+1
-1
src/cmd/godoc/main.go
src/cmd/godoc/main.go
+3
-3
src/cmd/godoc/spec.go
src/cmd/godoc/spec.go
+1
-1
src/cmd/godoc/utils.go
src/cmd/godoc/utils.go
+1
-1
src/cmd/gofix/main.go
src/cmd/gofix/main.go
+1
-1
src/cmd/gofmt/gofmt.go
src/cmd/gofmt/gofmt.go
+1
-1
src/cmd/gofmt/rewrite.go
src/cmd/gofmt/rewrite.go
+1
-1
src/cmd/goinstall/download.go
src/cmd/goinstall/download.go
+3
-3
src/cmd/goinstall/main.go
src/cmd/goinstall/main.go
+1
-1
src/cmd/goinstall/make.go
src/cmd/goinstall/make.go
+1
-1
src/cmd/gotest/gotest.go
src/cmd/gotest/gotest.go
+2
-2
src/cmd/govet/govet.go
src/cmd/govet/govet.go
+1
-1
src/cmd/hgpatch/main.go
src/cmd/hgpatch/main.go
+1
-1
test/alias.go
test/alias.go
+7
-7
test/bench/pidigits.go
test/bench/pidigits.go
+1
-1
test/chan/select5.go
test/chan/select5.go
+1
-1
test/cmplxdivide.go
test/cmplxdivide.go
+7
-7
test/garbage/parser.go
test/garbage/parser.go
+3
-3
test/ken/divconst.go
test/ken/divconst.go
+1
-1
test/ken/modconst.go
test/ken/modconst.go
+1
-1
test/mallocrand.go
test/mallocrand.go
+1
-1
test/stringrange.go
test/stringrange.go
+1
-1
test/utf.go
test/utf.go
+1
-1
No files found.
doc/codelab/wiki/final-noclosure.go
View file @
f9489bed
...
@@ -2,10 +2,10 @@ package main
...
@@ -2,10 +2,10 @@ package main
import
(
import
(
"errors"
"errors"
"http"
"io/ioutil"
"io/ioutil"
"net/http"
"regexp"
"regexp"
"template"
"te
xt/te
mplate"
)
)
type
Page
struct
{
type
Page
struct
{
...
...
doc/codelab/wiki/final-noerror.go
View file @
f9489bed
package
main
package
main
import
(
import
(
"http"
"io/ioutil"
"io/ioutil"
"template"
"net/http"
"text/template"
)
)
type
Page
struct
{
type
Page
struct
{
...
...
doc/codelab/wiki/final-parsetemplate.go
View file @
f9489bed
package
main
package
main
import
(
import
(
"http"
"io/ioutil"
"io/ioutil"
"net/http"
"regexp"
"regexp"
"template"
"te
xt/te
mplate"
)
)
type
Page
struct
{
type
Page
struct
{
...
...
doc/codelab/wiki/final-template.go
View file @
f9489bed
package
main
package
main
import
(
import
(
"http"
"io/ioutil"
"io/ioutil"
"template"
"net/http"
"text/template"
)
)
type
Page
struct
{
type
Page
struct
{
...
...
doc/codelab/wiki/final.go
View file @
f9489bed
package
main
package
main
import
(
import
(
"http"
"io/ioutil"
"io/ioutil"
"net/http"
"regexp"
"regexp"
"template"
"te
xt/te
mplate"
)
)
type
Page
struct
{
type
Page
struct
{
...
...
doc/codelab/wiki/get.go
View file @
f9489bed
package
main
package
main
import
(
import
(
"http"
"flag"
"flag"
"fmt"
"fmt"
"io"
"io"
"log"
"log"
"net"
"net"
"net/http"
"os"
"os"
"strings"
"strings"
)
)
...
...
doc/codelab/wiki/htmlify.go
View file @
f9489bed
package
main
package
main
import
(
import
(
"template"
"os"
"io/ioutil"
"io/ioutil"
"os"
"text/template"
)
)
func
main
()
{
func
main
()
{
...
...
doc/codelab/wiki/http-sample.go
View file @
f9489bed
...
@@ -2,7 +2,7 @@ package main
...
@@ -2,7 +2,7 @@ package main
import
(
import
(
"fmt"
"fmt"
"http"
"
net/
http"
)
)
func
handler
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
func
handler
(
w
http
.
ResponseWriter
,
r
*
http
.
Request
)
{
...
...
doc/codelab/wiki/index.html
View file @
f9489bed
...
@@ -237,7 +237,7 @@ package main
...
@@ -237,7 +237,7 @@ package main
import (
import (
"
fmt
"
"
fmt
"
"
http
"
"
net/
http
"
)
)
func handler(w http.ResponseWriter, r *http.Request) {
func handler(w http.ResponseWriter, r *http.Request) {
...
...
doc/codelab/wiki/notemplate.go
View file @
f9489bed
...
@@ -2,8 +2,8 @@ package main
...
@@ -2,8 +2,8 @@ package main
import
(
import
(
"fmt"
"fmt"
"http"
"io/ioutil"
"io/ioutil"
"net/http"
)
)
type
Page
struct
{
type
Page
struct
{
...
...
doc/codelab/wiki/part2.go
View file @
f9489bed
...
@@ -2,8 +2,8 @@ package main
...
@@ -2,8 +2,8 @@ package main
import
(
import
(
"fmt"
"fmt"
"http"
"io/ioutil"
"io/ioutil"
"net/http"
)
)
type
Page
struct
{
type
Page
struct
{
...
...
doc/codelab/wiki/srcextract.go
View file @
f9489bed
...
@@ -3,13 +3,13 @@ package main
...
@@ -3,13 +3,13 @@ package main
import
(
import
(
"bytes"
"bytes"
"flag"
"flag"
"go/ast"
"go/parser"
"go/parser"
"go/printer"
"go/printer"
"go/ast"
"go/token"
"go/token"
"log"
"log"
"template"
"os"
"os"
"text/template"
)
)
var
(
var
(
...
...
doc/codewalk/markov.go
View file @
f9489bed
...
@@ -50,8 +50,8 @@ import (
...
@@ -50,8 +50,8 @@ import (
"flag"
"flag"
"fmt"
"fmt"
"io"
"io"
"math/rand"
"os"
"os"
"rand"
"strings"
"strings"
"time"
"time"
)
)
...
...
doc/codewalk/pig.go
View file @
f9489bed
...
@@ -6,7 +6,7 @@ package main
...
@@ -6,7 +6,7 @@ package main
import
(
import
(
"fmt"
"fmt"
"rand"
"
math/
rand"
)
)
const
(
const
(
...
...
doc/codewalk/urlpoll.go
View file @
f9489bed
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
package
main
package
main
import
(
import
(
"http"
"log"
"log"
"net/http"
"time"
"time"
)
)
...
...
doc/progs/eff_qr.go
View file @
f9489bed
...
@@ -2,9 +2,9 @@ package main
...
@@ -2,9 +2,9 @@ package main
import
(
import
(
"flag"
"flag"
"http"
"log"
"log"
"template"
"net/http"
"text/template"
)
)
var
addr
=
flag
.
String
(
"addr"
,
":1718"
,
"http service address"
)
// Q=17, R=18
var
addr
=
flag
.
String
(
"addr"
,
":1718"
,
"http service address"
)
// Q=17, R=18
...
...
doc/talks/io2010/balance.go
View file @
f9489bed
...
@@ -8,7 +8,7 @@ import (
...
@@ -8,7 +8,7 @@ import (
"container/heap"
"container/heap"
"flag"
"flag"
"fmt"
"fmt"
"rand"
"
math/
rand"
"time"
"time"
)
)
...
...
doc/tmpltohtml.go
View file @
f9489bed
...
@@ -27,7 +27,7 @@ import (
...
@@ -27,7 +27,7 @@ import (
"os"
"os"
"regexp"
"regexp"
"strings"
"strings"
"template"
"te
xt/te
mplate"
)
)
func
Usage
()
{
func
Usage
()
{
...
...
misc/dashboard/builder/exec.go
View file @
f9489bed
...
@@ -6,10 +6,10 @@ package main
...
@@ -6,10 +6,10 @@ package main
import
(
import
(
"bytes"
"bytes"
"exec"
"io"
"io"
"log"
"log"
"os"
"os"
"os/exec"
"strings"
"strings"
)
)
...
...
misc/dashboard/builder/http.go
View file @
f9489bed
...
@@ -6,13 +6,13 @@ package main
...
@@ -6,13 +6,13 @@ package main
import
(
import
(
"bytes"
"bytes"
"encoding/json"
"errors"
"errors"
"fmt"
"fmt"
"http"
"json"
"log"
"log"
"net/http"
"net/url"
"strconv"
"strconv"
"url"
)
)
type
param
map
[
string
]
string
type
param
map
[
string
]
string
...
...
misc/dashboard/builder/main.go
View file @
f9489bed
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
package
main
package
main
import
(
import
(
"encoding/xml"
"errors"
"errors"
"flag"
"flag"
"fmt"
"fmt"
...
@@ -17,7 +18,6 @@ import (
...
@@ -17,7 +18,6 @@ import (
"strconv"
"strconv"
"strings"
"strings"
"time"
"time"
"xml"
)
)
const
(
const
(
...
...
misc/goplay/goplay.go
View file @
f9489bed
...
@@ -5,16 +5,16 @@
...
@@ -5,16 +5,16 @@
package
main
package
main
import
(
import
(
"exec"
"flag"
"flag"
"http"
"io"
"io"
"io/ioutil"
"io/ioutil"
"log"
"log"
"net/http"
"os"
"os"
"os/exec"
"runtime"
"runtime"
"strconv"
"strconv"
"template"
"te
xt/te
mplate"
)
)
var
(
var
(
...
...
src/cmd/cgo/util.go
View file @
f9489bed
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@
package
main
package
main
import
(
import
(
"exec"
"fmt"
"fmt"
"go/token"
"go/token"
"io/ioutil"
"io/ioutil"
"os"
"os"
"os/exec"
)
)
// run runs the command argv, feeding in stdin on standard input.
// run runs the command argv, feeding in stdin on standard input.
...
...
src/cmd/go/main.go
View file @
f9489bed
...
@@ -10,7 +10,7 @@ import (
...
@@ -10,7 +10,7 @@ import (
"io"
"io"
"os"
"os"
"strings"
"strings"
"template"
"te
xt/te
mplate"
)
)
// A Command is an implementation of a go command
// A Command is an implementation of a go command
...
...
src/cmd/godoc/appinit.go
View file @
f9489bed
...
@@ -9,8 +9,8 @@ package main
...
@@ -9,8 +9,8 @@ package main
import
(
import
(
"archive/zip"
"archive/zip"
"http"
"log"
"log"
"net/http"
"path"
"path"
)
)
...
...
src/cmd/godoc/codewalk.go
View file @
f9489bed
...
@@ -13,19 +13,19 @@
...
@@ -13,19 +13,19 @@
package
main
package
main
import
(
import
(
"encoding/xml"
"errors"
"errors"
"fmt"
"fmt"
"http"
"io"
"io"
"log"
"log"
"net/http"
"os"
"os"
"regexp"
"regexp"
"sort"
"sort"
"strconv"
"strconv"
"strings"
"strings"
"template"
"text/template"
"utf8"
"unicode/utf8"
"xml"
)
)
// Handler for /doc/codewalk/ and below.
// Handler for /doc/codewalk/ and below.
...
...
src/cmd/godoc/format.go
View file @
f9489bed
...
@@ -17,7 +17,7 @@ import (
...
@@ -17,7 +17,7 @@ import (
"io"
"io"
"regexp"
"regexp"
"strconv"
"strconv"
"template"
"te
xt/te
mplate"
)
)
// ----------------------------------------------------------------------------
// ----------------------------------------------------------------------------
...
...
src/cmd/godoc/godoc.go
View file @
f9489bed
...
@@ -13,9 +13,9 @@ import (
...
@@ -13,9 +13,9 @@ import (
"go/doc"
"go/doc"
"go/printer"
"go/printer"
"go/token"
"go/token"
"http"
"io"
"io"
"log"
"log"
"net/http"
"os"
"os"
"path"
"path"
"path/filepath"
"path/filepath"
...
@@ -23,7 +23,7 @@ import (
...
@@ -23,7 +23,7 @@ import (
"runtime"
"runtime"
"sort"
"sort"
"strings"
"strings"
"template"
"te
xt/te
mplate"
"time"
"time"
)
)
...
...
src/cmd/godoc/httpzip.go
View file @
f9489bed
...
@@ -26,8 +26,8 @@ package main
...
@@ -26,8 +26,8 @@ package main
import
(
import
(
"archive/zip"
"archive/zip"
"fmt"
"fmt"
"http"
"io"
"io"
"net/http"
"os"
"os"
"path"
"path"
"sort"
"sort"
...
...
src/cmd/godoc/index.go
View file @
f9489bed
...
@@ -40,12 +40,12 @@ package main
...
@@ -40,12 +40,12 @@ package main
import
(
import
(
"bufio"
"bufio"
"bytes"
"bytes"
"encoding/gob"
"errors"
"errors"
"go/ast"
"go/ast"
"go/parser"
"go/parser"
"go/scanner"
"go/scanner"
"go/token"
"go/token"
"gob"
"index/suffixarray"
"index/suffixarray"
"io"
"io"
"path/filepath"
"path/filepath"
...
...
src/cmd/godoc/main.go
View file @
f9489bed
...
@@ -34,10 +34,11 @@ import (
...
@@ -34,10 +34,11 @@ import (
"fmt"
"fmt"
"go/ast"
"go/ast"
"go/build"
"go/build"
"http"
_
"http/pprof"
// to serve /debug/pprof/*
"io"
"io"
"log"
"log"
"net/http"
_
"net/http/pprof"
// to serve /debug/pprof/*
"net/url"
"os"
"os"
"path"
"path"
"path/filepath"
"path/filepath"
...
@@ -45,7 +46,6 @@ import (
...
@@ -45,7 +46,6 @@ import (
"runtime"
"runtime"
"strings"
"strings"
"time"
"time"
"url"
)
)
const
defaultAddr
=
":6060"
// default webserver address
const
defaultAddr
=
":6060"
// default webserver address
...
...
src/cmd/godoc/spec.go
View file @
f9489bed
...
@@ -14,7 +14,7 @@ import (
...
@@ -14,7 +14,7 @@ import (
"bytes"
"bytes"
"fmt"
"fmt"
"io"
"io"
"scanner"
"
text/
scanner"
)
)
type
ebnfParser
struct
{
type
ebnfParser
struct
{
...
...
src/cmd/godoc/utils.go
View file @
f9489bed
...
@@ -15,7 +15,7 @@ import (
...
@@ -15,7 +15,7 @@ import (
"strings"
"strings"
"sync"
"sync"
"time"
"time"
"utf8"
"u
nicode/u
tf8"
)
)
// An RWValue wraps a value and permits mutually exclusive
// An RWValue wraps a value and permits mutually exclusive
...
...
src/cmd/gofix/main.go
View file @
f9489bed
...
@@ -6,7 +6,6 @@ package main
...
@@ -6,7 +6,6 @@ package main
import
(
import
(
"bytes"
"bytes"
"exec"
"flag"
"flag"
"fmt"
"fmt"
"go/ast"
"go/ast"
...
@@ -16,6 +15,7 @@ import (
...
@@ -16,6 +15,7 @@ import (
"go/token"
"go/token"
"io/ioutil"
"io/ioutil"
"os"
"os"
"os/exec"
"path/filepath"
"path/filepath"
"sort"
"sort"
"strings"
"strings"
...
...
src/cmd/gofmt/gofmt.go
View file @
f9489bed
...
@@ -6,7 +6,6 @@ package main
...
@@ -6,7 +6,6 @@ package main
import
(
import
(
"bytes"
"bytes"
"exec"
"flag"
"flag"
"fmt"
"fmt"
"go/ast"
"go/ast"
...
@@ -17,6 +16,7 @@ import (
...
@@ -17,6 +16,7 @@ import (
"io"
"io"
"io/ioutil"
"io/ioutil"
"os"
"os"
"os/exec"
"path/filepath"
"path/filepath"
"runtime/pprof"
"runtime/pprof"
"strings"
"strings"
...
...
src/cmd/gofmt/rewrite.go
View file @
f9489bed
...
@@ -13,7 +13,7 @@ import (
...
@@ -13,7 +13,7 @@ import (
"reflect"
"reflect"
"strings"
"strings"
"unicode"
"unicode"
"utf8"
"u
nicode/u
tf8"
)
)
func
initRewrite
()
{
func
initRewrite
()
{
...
...
src/cmd/goinstall/download.go
View file @
f9489bed
...
@@ -8,12 +8,12 @@ package main
...
@@ -8,12 +8,12 @@ package main
import
(
import
(
"bytes"
"bytes"
"encoding/json"
"errors"
"errors"
"exec"
"fmt"
"fmt"
"http"
"net/http"
"json"
"os"
"os"
"os/exec"
"path/filepath"
"path/filepath"
"regexp"
"regexp"
"runtime"
"runtime"
...
...
src/cmd/goinstall/main.go
View file @
f9489bed
...
@@ -7,13 +7,13 @@ package main
...
@@ -7,13 +7,13 @@ package main
import
(
import
(
"bytes"
"bytes"
"errors"
"errors"
"exec"
"flag"
"flag"
"fmt"
"fmt"
"go/build"
"go/build"
"go/token"
"go/token"
"io/ioutil"
"io/ioutil"
"os"
"os"
"os/exec"
"path/filepath"
// use for file system paths
"path/filepath"
// use for file system paths
"regexp"
"regexp"
"runtime"
"runtime"
...
...
src/cmd/goinstall/make.go
View file @
f9489bed
...
@@ -12,7 +12,7 @@ import (
...
@@ -12,7 +12,7 @@ import (
"go/build"
"go/build"
"path"
// use for import paths
"path"
// use for import paths
"strings"
"strings"
"template"
"te
xt/te
mplate"
)
)
// domake builds the package in dir.
// domake builds the package in dir.
...
...
src/cmd/gotest/gotest.go
View file @
f9489bed
...
@@ -6,7 +6,6 @@ package main
...
@@ -6,7 +6,6 @@ package main
import
(
import
(
"bufio"
"bufio"
"exec"
"fmt"
"fmt"
"go/ast"
"go/ast"
"go/build"
"go/build"
...
@@ -15,12 +14,13 @@ import (
...
@@ -15,12 +14,13 @@ import (
"go/token"
"go/token"
"io/ioutil"
"io/ioutil"
"os"
"os"
"os/exec"
"runtime"
"runtime"
"sort"
"sort"
"strings"
"strings"
"time"
"time"
"unicode"
"unicode"
"utf8"
"u
nicode/u
tf8"
)
)
// Environment for commands.
// Environment for commands.
...
...
src/cmd/govet/govet.go
View file @
f9489bed
...
@@ -20,7 +20,7 @@ import (
...
@@ -20,7 +20,7 @@ import (
"reflect"
"reflect"
"strconv"
"strconv"
"strings"
"strings"
"utf8"
"u
nicode/u
tf8"
)
)
var
verbose
=
flag
.
Bool
(
"v"
,
false
,
"verbose"
)
var
verbose
=
flag
.
Bool
(
"v"
,
false
,
"verbose"
)
...
...
src/cmd/hgpatch/main.go
View file @
f9489bed
...
@@ -6,11 +6,11 @@ package main
...
@@ -6,11 +6,11 @@ package main
import
(
import
(
"bytes"
"bytes"
"exec"
"flag"
"flag"
"fmt"
"fmt"
"io/ioutil"
"io/ioutil"
"os"
"os"
"os/exec"
"patch"
"patch"
"path/filepath"
"path/filepath"
"sort"
"sort"
...
...
test/alias.go
View file @
f9489bed
...
@@ -11,25 +11,25 @@ package main
...
@@ -11,25 +11,25 @@ package main
import
(
import
(
"fmt"
"fmt"
"utf8"
"u
nicode/u
tf8"
)
)
func
f
(
byte
)
{}
func
f
(
byte
)
{}
func
g
(
uint8
)
{}
func
g
(
uint8
)
{}
func
main
()
{
func
main
()
{
var
x
float64
var
x
float64
f
(
x
)
// ERROR "byte"
f
(
x
)
// ERROR "byte"
g
(
x
)
// ERROR "uint8"
g
(
x
)
// ERROR "uint8"
// Test across imports.
// Test across imports.
var
ff
fmt
.
Formatter
var
ff
fmt
.
Formatter
var
fs
fmt
.
State
var
fs
fmt
.
State
ff
.
Format
(
fs
,
x
)
// ERROR "rune"
ff
.
Format
(
fs
,
x
)
// ERROR "rune"
utf8
.
RuneStart
(
x
)
// ERROR "byte"
utf8
.
RuneStart
(
x
)
// ERROR "byte"
var
s
utf8
.
String
var
s
utf8
.
String
s
.
At
(
x
)
// ERROR "int"
s
.
At
(
x
)
// ERROR "int"
}
}
test/bench/pidigits.go
View file @
f9489bed
...
@@ -38,9 +38,9 @@ POSSIBILITY OF SUCH DAMAGE.
...
@@ -38,9 +38,9 @@ POSSIBILITY OF SUCH DAMAGE.
package
main
package
main
import
(
import
(
"big"
"flag"
"flag"
"fmt"
"fmt"
"math/big"
)
)
var
n
=
flag
.
Int
(
"n"
,
27
,
"number of digits"
)
var
n
=
flag
.
Int
(
"n"
,
27
,
"number of digits"
)
...
...
test/chan/select5.go
View file @
f9489bed
...
@@ -18,7 +18,7 @@ import (
...
@@ -18,7 +18,7 @@ import (
"fmt"
"fmt"
"io"
"io"
"os"
"os"
"template"
"te
xt/te
mplate"
)
)
func
main
()
{
func
main
()
{
...
...
test/cmplxdivide.go
View file @
f9489bed
...
@@ -9,14 +9,14 @@
...
@@ -9,14 +9,14 @@
package
main
package
main
import
(
import
(
"cmath"
"fmt"
"fmt"
"math"
"math"
"math/cmplx"
)
)
type
Test
struct
{
type
Test
struct
{
f
,
g
complex128
f
,
g
complex128
out
complex128
out
complex128
}
}
var
nan
=
math
.
NaN
()
var
nan
=
math
.
NaN
()
...
@@ -25,9 +25,9 @@ var negzero = math.Copysign(0, -1)
...
@@ -25,9 +25,9 @@ var negzero = math.Copysign(0, -1)
func
calike
(
a
,
b
complex128
)
bool
{
func
calike
(
a
,
b
complex128
)
bool
{
switch
{
switch
{
case
cm
ath
.
IsInf
(
a
)
&&
cmath
.
IsInf
(
b
)
:
case
cm
plx
.
IsInf
(
a
)
&&
cmplx
.
IsInf
(
b
)
:
return
true
return
true
case
cm
ath
.
IsNaN
(
a
)
&&
cmath
.
IsNaN
(
b
)
:
case
cm
plx
.
IsNaN
(
a
)
&&
cmplx
.
IsNaN
(
b
)
:
return
true
return
true
}
}
return
a
==
b
return
a
==
b
...
@@ -36,7 +36,7 @@ func calike(a, b complex128) bool {
...
@@ -36,7 +36,7 @@ func calike(a, b complex128) bool {
func
main
()
{
func
main
()
{
bad
:=
false
bad
:=
false
for
_
,
t
:=
range
tests
{
for
_
,
t
:=
range
tests
{
x
:=
t
.
f
/
t
.
g
x
:=
t
.
f
/
t
.
g
if
!
calike
(
x
,
t
.
out
)
{
if
!
calike
(
x
,
t
.
out
)
{
if
!
bad
{
if
!
bad
{
fmt
.
Printf
(
"BUG
\n
"
)
fmt
.
Printf
(
"BUG
\n
"
)
...
...
test/garbage/parser.go
View file @
f9489bed
...
@@ -12,14 +12,14 @@ import (
...
@@ -12,14 +12,14 @@ import (
"go/ast"
"go/ast"
"go/parser"
"go/parser"
"go/token"
"go/token"
"log"
"net/http"
_
"net/http/pprof"
"os"
"os"
"path"
"path"
"runtime"
"runtime"
"strings"
"strings"
"time"
"time"
"http"
_
"http/pprof"
"log"
)
)
var
serve
=
flag
.
String
(
"serve"
,
""
,
"serve http on this address at end"
)
var
serve
=
flag
.
String
(
"serve"
,
""
,
"serve http on this address at end"
)
...
...
test/ken/divconst.go
View file @
f9489bed
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
package
main
package
main
import
"rand"
import
"
math/
rand"
const
Count
=
1e5
const
Count
=
1e5
...
...
test/ken/modconst.go
View file @
f9489bed
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
package
main
package
main
import
"rand"
import
"
math/
rand"
const
Count
=
1e5
const
Count
=
1e5
...
...
test/mallocrand.go
View file @
f9489bed
...
@@ -10,7 +10,7 @@ package main
...
@@ -10,7 +10,7 @@ package main
import
(
import
(
"flag"
"flag"
"rand"
"
math/
rand"
"runtime"
"runtime"
"unsafe"
"unsafe"
)
)
...
...
test/stringrange.go
View file @
f9489bed
...
@@ -9,7 +9,7 @@ package main
...
@@ -9,7 +9,7 @@ package main
import
(
import
(
"fmt"
"fmt"
"os"
"os"
"utf8"
"u
nicode/u
tf8"
)
)
func
main
()
{
func
main
()
{
...
...
test/utf.go
View file @
f9489bed
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
package
main
package
main
import
"utf8"
import
"u
nicode/u
tf8"
func
main
()
{
func
main
()
{
var
chars
[
6
]
rune
var
chars
[
6
]
rune
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment