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
20011bc8
Commit
20011bc8
authored
Sep 17, 2009
by
Russ Cox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unused imports
R=r OCL=34731 CL=34731
parent
1401151a
Changes
83
Hide whitespace changes
Inline
Side-by-side
Showing
83 changed files
with
45 additions
and
159 deletions
+45
-159
src/cmd/ebnflint/ebnflint.go
src/cmd/ebnflint/ebnflint.go
+1
-2
src/cmd/godoc/godoc.go
src/cmd/godoc/godoc.go
+0
-2
src/cmd/gofmt/gofmt.go
src/cmd/gofmt/gofmt.go
+0
-2
src/cmd/gotest/gotest
src/cmd/gotest/gotest
+17
-15
src/pkg/archive/tar/reader_test.go
src/pkg/archive/tar/reader_test.go
+0
-1
src/pkg/archive/tar/writer_test.go
src/pkg/archive/tar/writer_test.go
+0
-3
src/pkg/compress/flate/flate_test.go
src/pkg/compress/flate/flate_test.go
+0
-4
src/pkg/compress/gzip/gunzip_test.go
src/pkg/compress/gzip/gunzip_test.go
+0
-1
src/pkg/crypto/aes/aes_test.go
src/pkg/crypto/aes/aes_test.go
+0
-1
src/pkg/crypto/block/cbc_aes_test.go
src/pkg/crypto/block/cbc_aes_test.go
+0
-1
src/pkg/crypto/block/cfb_aes_test.go
src/pkg/crypto/block/cfb_aes_test.go
+0
-1
src/pkg/crypto/block/cmac.go
src/pkg/crypto/block/cmac.go
+1
-4
src/pkg/crypto/block/ctr_aes_test.go
src/pkg/crypto/block/ctr_aes_test.go
+0
-1
src/pkg/crypto/block/ecb_aes_test.go
src/pkg/crypto/block/ecb_aes_test.go
+0
-1
src/pkg/crypto/block/ofb_aes_test.go
src/pkg/crypto/block/ofb_aes_test.go
+0
-1
src/pkg/datafmt/datafmt.go
src/pkg/datafmt/datafmt.go
+0
-3
src/pkg/datafmt/datafmt_test.go
src/pkg/datafmt/datafmt_test.go
+0
-1
src/pkg/datafmt/parser.go
src/pkg/datafmt/parser.go
+0
-1
src/pkg/debug/dwarf/entry.go
src/pkg/debug/dwarf/entry.go
+1
-4
src/pkg/debug/dwarf/open.go
src/pkg/debug/dwarf/open.go
+0
-1
src/pkg/debug/gosym/pclntab.go
src/pkg/debug/gosym/pclntab.go
+1
-4
src/pkg/debug/gosym/pclntab_test.go
src/pkg/debug/gosym/pclntab_test.go
+0
-2
src/pkg/debug/proc/proc.go
src/pkg/debug/proc/proc.go
+7
-7
src/pkg/ebnf/ebnf.go
src/pkg/ebnf/ebnf.go
+0
-3
src/pkg/ebnf/parser.go
src/pkg/ebnf/parser.go
+0
-4
src/pkg/exvar/exvar.go
src/pkg/exvar/exvar.go
+0
-1
src/pkg/exvar/exvar_test.go
src/pkg/exvar/exvar_test.go
+0
-1
src/pkg/flag/flag_test.go
src/pkg/flag/flag_test.go
+0
-1
src/pkg/fmt/fmt_test.go
src/pkg/fmt/fmt_test.go
+0
-1
src/pkg/go/ast/scope.go
src/pkg/go/ast/scope.go
+0
-3
src/pkg/go/doc/comment.go
src/pkg/go/doc/comment.go
+0
-1
src/pkg/go/doc/doc.go
src/pkg/go/doc/doc.go
+0
-3
src/pkg/go/parser/interface.go
src/pkg/go/parser/interface.go
+0
-2
src/pkg/go/parser/parser.go
src/pkg/go/parser/parser.go
+0
-4
src/pkg/go/parser/parser_test.go
src/pkg/go/parser/parser_test.go
+0
-1
src/pkg/go/printer/printer_test.go
src/pkg/go/printer/printer_test.go
+0
-1
src/pkg/gob/decoder.go
src/pkg/gob/decoder.go
+0
-1
src/pkg/gob/encode.go
src/pkg/gob/encode.go
+0
-1
src/pkg/gob/encoder_test.go
src/pkg/gob/encoder_test.go
+0
-1
src/pkg/gob/type.go
src/pkg/gob/type.go
+0
-2
src/pkg/gob/type_test.go
src/pkg/gob/type_test.go
+0
-1
src/pkg/http/client.go
src/pkg/http/client.go
+0
-1
src/pkg/http/client_test.go
src/pkg/http/client_test.go
+0
-1
src/pkg/http/request_test.go
src/pkg/http/request_test.go
+1
-5
src/pkg/io/io.go
src/pkg/io/io.go
+0
-1
src/pkg/json/parse.go
src/pkg/json/parse.go
+0
-3
src/pkg/net/dialgoogle_test.go
src/pkg/net/dialgoogle_test.go
+0
-1
src/pkg/net/dnsclient.go
src/pkg/net/dnsclient.go
+0
-1
src/pkg/net/dnsconfig.go
src/pkg/net/dnsconfig.go
+1
-5
src/pkg/net/net_test.go
src/pkg/net/net_test.go
+0
-1
src/pkg/net/port.go
src/pkg/net/port.go
+0
-1
src/pkg/net/server_test.go
src/pkg/net/server_test.go
+0
-1
src/pkg/net/timeout_test.go
src/pkg/net/timeout_test.go
+0
-1
src/pkg/os/proc.go
src/pkg/os/proc.go
+1
-4
src/pkg/reflect/type.go
src/pkg/reflect/type.go
+0
-1
src/pkg/rpc/client.go
src/pkg/rpc/client.go
+0
-1
src/pkg/rpc/debug.go
src/pkg/rpc/debug.go
+0
-3
src/pkg/rpc/server_test.go
src/pkg/rpc/server_test.go
+0
-2
src/pkg/strconv/atof_test.go
src/pkg/strconv/atof_test.go
+0
-1
src/pkg/strconv/atoi_test.go
src/pkg/strconv/atoi_test.go
+0
-1
src/pkg/strconv/decimal_test.go
src/pkg/strconv/decimal_test.go
+0
-1
src/pkg/strconv/fp_test.go
src/pkg/strconv/fp_test.go
+0
-1
src/pkg/strconv/itoa_test.go
src/pkg/strconv/itoa_test.go
+0
-2
src/pkg/syscall/syscall.go
src/pkg/syscall/syscall.go
+0
-2
src/pkg/template/format.go
src/pkg/template/format.go
+0
-1
src/pkg/template/template_test.go
src/pkg/template/template_test.go
+0
-2
src/pkg/time/sleep.go
src/pkg/time/sleep.go
+0
-1
src/pkg/time/tick.go
src/pkg/time/tick.go
+0
-5
src/pkg/utf8/utf8_test.go
src/pkg/utf8/utf8_test.go
+0
-1
test/bench/binary-tree-freelist.go
test/bench/binary-tree-freelist.go
+0
-1
test/bench/binary-tree.go
test/bench/binary-tree.go
+0
-1
test/bigalg.go
test/bigalg.go
+0
-5
test/fixedbugs/bug106.dir/bug1.go
test/fixedbugs/bug106.dir/bug1.go
+1
-1
test/fixedbugs/bug107.go
test/fixedbugs/bug107.go
+1
-0
test/fixedbugs/bug129.go
test/fixedbugs/bug129.go
+2
-0
test/fixedbugs/bug133.dir/bug2.go
test/fixedbugs/bug133.dir/bug2.go
+1
-1
test/fixedbugs/bug163.go
test/fixedbugs/bug163.go
+0
-2
test/fixedbugs/bug177.go
test/fixedbugs/bug177.go
+0
-1
test/fixedbugs/bug188.go
test/fixedbugs/bug188.go
+1
-0
test/fixedbugs/bug191.dir/a.go
test/fixedbugs/bug191.dir/a.go
+3
-0
test/fixedbugs/bug191.dir/b.go
test/fixedbugs/bug191.dir/b.go
+2
-0
test/fixedbugs/bug191.go
test/fixedbugs/bug191.go
+3
-0
test/initsyscall.go
test/initsyscall.go
+0
-1
No files found.
src/cmd/ebnflint/ebnflint.go
View file @
20011bc8
...
@@ -13,7 +13,6 @@ import (
...
@@ -13,7 +13,6 @@ import (
"io"
;
"io"
;
"os"
;
"os"
;
"path"
;
"path"
;
"sort"
;
"strings"
;
"strings"
;
)
)
...
@@ -47,7 +46,7 @@ func extractEBNF(src []byte) []byte {
...
@@ -47,7 +46,7 @@ func extractEBNF(src []byte) []byte {
i
+=
len
(
open
);
i
+=
len
(
open
);
// write as many newlines as found in the excluded text
// write as many newlines as found in the excluded text
// to maintain correct line numbers in error messages
// to maintain correct line numbers in error messages
for
_
,
ch
:=
range
src
[
0
:
i
]
{
for
_
,
ch
:=
range
src
[
0
:
i
]
{
if
ch
==
'\n'
{
if
ch
==
'\n'
{
buf
.
WriteByte
(
'\n'
);
buf
.
WriteByte
(
'\n'
);
...
...
src/cmd/godoc/godoc.go
View file @
20011bc8
...
@@ -40,13 +40,11 @@ import (
...
@@ -40,13 +40,11 @@ import (
"http"
;
"http"
;
"io"
;
"io"
;
"log"
;
"log"
;
"net"
;
"os"
;
"os"
;
pathutil
"path"
;
pathutil
"path"
;
"sort"
;
"sort"
;
"strings"
;
"strings"
;
"sync"
;
"sync"
;
"syscall"
;
"template"
;
"template"
;
"time"
;
"time"
;
)
)
...
...
src/cmd/gofmt/gofmt.go
View file @
20011bc8
...
@@ -11,10 +11,8 @@ import (
...
@@ -11,10 +11,8 @@ import (
"go/parser"
;
"go/parser"
;
"go/printer"
;
"go/printer"
;
"go/scanner"
;
"go/scanner"
;
"io"
;
"os"
;
"os"
;
pathutil
"path"
;
pathutil
"path"
;
"sort"
;
"strings"
;
"strings"
;
)
)
...
...
src/cmd/gotest/gotest
View file @
20011bc8
...
@@ -86,11 +86,23 @@ MAKELEVEL=
...
@@ -86,11 +86,23 @@ MAKELEVEL=
importpath
=
$(
make
-s
importpath
)
importpath
=
$(
make
-s
importpath
)
{
{
# test functions are named TestFoo
# the grep -v eliminates methods and other special names
# that have multiple dots.
pattern
=
'Test([^a-z].*)?'
tests
=
$(
6nm
-s
_test/
$importpath
.a
$xofile
| egrep
' T .*·'
$pattern
'$'
|
grep
-v
'·.*[.·]'
|
sed
's/.* //; s/·/./'
)
if
[
"x
$tests
"
=
x
]
;
then
echo
'gotest: error: no tests matching '
$pattern
in
_test/
$importpath
.a
$xofile
1>&2
exit
2
fi
# package spec
# package spec
echo
'package main'
echo
'package main'
echo
echo
# imports
# imports
echo
'import "'
$importpath
'"'
if
echo
"
$tests
"
| egrep
-v
'_test\.'
>
/dev/null
;
then
echo
'import "'
$importpath
'"'
fi
if
$havex
;
then
if
$havex
;
then
echo
'import "./_xtest_"'
echo
'import "./_xtest_"'
fi
fi
...
@@ -98,20 +110,10 @@ importpath=$(make -s importpath)
...
@@ -98,20 +110,10 @@ importpath=$(make -s importpath)
# test array
# test array
echo
echo
echo
'var tests = []testing.Test {'
echo
'var tests = []testing.Test {'
for
i
in
$tests
# test functions are named TestFoo
do
# the grep -v eliminates methods and other special names
echo
' testing.Test{ "'
$i
'", '
$i
' },'
# that have multiple dots.
done
pattern
=
'Test([^a-z].*)?'
tests
=
$(
6nm
-s
_test/
$importpath
.a
$xofile
| egrep
' T .*·'
$pattern
'$'
|
grep
-v
'·.*[.·]'
|
sed
's/.* //; s/·/./'
)
if
[
"x
$tests
"
=
x
]
;
then
echo
'gotest: warning: no tests matching '
$pattern
in
_test/
$importpath
.a
$xofile
1>&2
else
for
i
in
$tests
do
echo
' testing.Test{ "'
$i
'", '
$i
' },'
done
fi
echo
'}'
echo
'}'
# body
# body
echo
echo
...
...
src/pkg/archive/tar/reader_test.go
View file @
20011bc8
...
@@ -6,7 +6,6 @@ package tar
...
@@ -6,7 +6,6 @@ package tar
import
(
import
(
"bytes"
;
"bytes"
;
"fmt"
;
"io"
;
"io"
;
"os"
;
"os"
;
"reflect"
;
"reflect"
;
...
...
src/pkg/archive/tar/writer_test.go
View file @
20011bc8
...
@@ -8,9 +8,6 @@ import (
...
@@ -8,9 +8,6 @@ import (
"bytes"
;
"bytes"
;
"fmt"
;
"fmt"
;
"io"
;
"io"
;
"os"
;
"reflect"
;
"strings"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/compress/flate/flate_test.go
View file @
20011bc8
...
@@ -10,11 +10,7 @@ package flate
...
@@ -10,11 +10,7 @@ package flate
import
(
import
(
"bytes"
;
"bytes"
;
"bufio"
;
"io"
;
"os"
;
"reflect"
;
"reflect"
;
"strconv"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/compress/gzip/gunzip_test.go
View file @
20011bc8
...
@@ -6,7 +6,6 @@ package gzip
...
@@ -6,7 +6,6 @@ package gzip
import
(
import
(
"bytes"
;
"bytes"
;
"fmt"
;
"io"
;
"io"
;
"os"
;
"os"
;
"testing"
;
"testing"
;
...
...
src/pkg/crypto/aes/aes_test.go
View file @
20011bc8
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
package
aes
package
aes
import
(
import
(
"fmt"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/crypto/block/cbc_aes_test.go
View file @
20011bc8
...
@@ -14,7 +14,6 @@ import (
...
@@ -14,7 +14,6 @@ import (
"bytes"
;
"bytes"
;
"crypto/aes"
;
"crypto/aes"
;
"io"
;
"io"
;
"os"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/crypto/block/cfb_aes_test.go
View file @
20011bc8
...
@@ -14,7 +14,6 @@ import (
...
@@ -14,7 +14,6 @@ import (
"bytes"
;
"bytes"
;
"crypto/aes"
;
"crypto/aes"
;
"io"
;
"io"
;
"os"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/crypto/block/cmac.go
View file @
20011bc8
...
@@ -7,10 +7,7 @@
...
@@ -7,10 +7,7 @@
package
block
package
block
import
(
import
"os"
"io"
;
"os"
;
)
const
(
const
(
// minimal irreducible polynomial of degree b
// minimal irreducible polynomial of degree b
...
...
src/pkg/crypto/block/ctr_aes_test.go
View file @
20011bc8
...
@@ -14,7 +14,6 @@ import (
...
@@ -14,7 +14,6 @@ import (
"bytes"
;
"bytes"
;
"crypto/aes"
;
"crypto/aes"
;
"io"
;
"io"
;
"os"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/crypto/block/ecb_aes_test.go
View file @
20011bc8
...
@@ -14,7 +14,6 @@ import (
...
@@ -14,7 +14,6 @@ import (
"bytes"
;
"bytes"
;
"crypto/aes"
;
"crypto/aes"
;
"io"
;
"io"
;
"os"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/crypto/block/ofb_aes_test.go
View file @
20011bc8
...
@@ -14,7 +14,6 @@ import (
...
@@ -14,7 +14,6 @@ import (
"bytes"
;
"bytes"
;
"crypto/aes"
;
"crypto/aes"
;
"io"
;
"io"
;
"os"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/datafmt/datafmt.go
View file @
20011bc8
...
@@ -203,15 +203,12 @@ package datafmt
...
@@ -203,15 +203,12 @@ package datafmt
import
(
import
(
"bytes"
;
"bytes"
;
"container/vector"
;
"fmt"
;
"fmt"
;
"go/token"
;
"go/token"
;
"io"
;
"io"
;
"os"
;
"os"
;
"reflect"
;
"reflect"
;
"runtime"
;
"runtime"
;
"strconv"
;
"strings"
;
)
)
...
...
src/pkg/datafmt/datafmt_test.go
View file @
20011bc8
...
@@ -6,7 +6,6 @@ package datafmt
...
@@ -6,7 +6,6 @@ package datafmt
import
(
import
(
"fmt"
;
"fmt"
;
"os"
;
"strings"
;
"strings"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/datafmt/parser.go
View file @
20011bc8
...
@@ -6,7 +6,6 @@ package datafmt
...
@@ -6,7 +6,6 @@ package datafmt
import
(
import
(
"container/vector"
;
"container/vector"
;
"fmt"
;
"go/scanner"
;
"go/scanner"
;
"go/token"
;
"go/token"
;
"os"
;
"os"
;
...
...
src/pkg/debug/dwarf/entry.go
View file @
20011bc8
...
@@ -10,10 +10,7 @@
...
@@ -10,10 +10,7 @@
package
dwarf
package
dwarf
import
(
import
"os"
"os"
;
"strconv"
;
)
// a single entry's description: a sequence of attributes
// a single entry's description: a sequence of attributes
type
abbrev
struct
{
type
abbrev
struct
{
...
...
src/pkg/debug/dwarf/open.go
View file @
20011bc8
...
@@ -9,7 +9,6 @@ package dwarf
...
@@ -9,7 +9,6 @@ package dwarf
import
(
import
(
"debug/binary"
;
"debug/binary"
;
"fmt"
;
"os"
;
"os"
;
)
)
...
...
src/pkg/debug/gosym/pclntab.go
View file @
20011bc8
...
@@ -8,10 +8,7 @@
...
@@ -8,10 +8,7 @@
package
gosym
package
gosym
import
(
import
"debug/binary"
"debug/binary"
;
"io"
;
)
type
LineTable
struct
{
type
LineTable
struct
{
Data
[]
byte
;
Data
[]
byte
;
...
...
src/pkg/debug/gosym/pclntab_test.go
View file @
20011bc8
...
@@ -6,8 +6,6 @@ package gosym
...
@@ -6,8 +6,6 @@ package gosym
import
(
import
(
"debug/elf"
;
"debug/elf"
;
"exec"
;
"io"
;
"os"
;
"os"
;
"testing"
;
"testing"
;
"syscall"
;
"syscall"
;
...
...
src/pkg/debug/proc/proc.go
View file @
20011bc8
...
@@ -13,15 +13,15 @@ package proc
...
@@ -13,15 +13,15 @@ package proc
// and proc_darwin.go do, because deps.bash only looks at
// and proc_darwin.go do, because deps.bash only looks at
// this file.
// this file.
import
(
import
(
"container/vector"
;
_
"container/vector"
;
"fmt"
;
_
"fmt"
;
"io"
;
_
"io"
;
"os"
;
"os"
;
"runtime"
;
_
"runtime"
;
"strconv"
;
"strconv"
;
"strings"
;
_
"strings"
;
"sync"
;
_
"sync"
;
"syscall"
;
_
"syscall"
;
)
)
type
Word
uint64
type
Word
uint64
...
...
src/pkg/ebnf/ebnf.go
View file @
20011bc8
...
@@ -24,12 +24,9 @@ package ebnf
...
@@ -24,12 +24,9 @@ package ebnf
import
(
import
(
"container/vector"
;
"container/vector"
;
"fmt"
;
"go/scanner"
;
"go/scanner"
;
"go/token"
;
"go/token"
;
"os"
;
"os"
;
"strconv"
;
"strings"
;
"unicode"
;
"unicode"
;
"utf8"
;
"utf8"
;
)
)
...
...
src/pkg/ebnf/parser.go
View file @
20011bc8
...
@@ -6,14 +6,10 @@ package ebnf
...
@@ -6,14 +6,10 @@ package ebnf
import
(
import
(
"container/vector"
;
"container/vector"
;
"fmt"
;
"go/scanner"
;
"go/scanner"
;
"go/token"
;
"go/token"
;
"os"
;
"os"
;
"strconv"
;
"strconv"
;
"strings"
;
"unicode"
;
"utf8"
;
)
)
...
...
src/pkg/exvar/exvar.go
View file @
20011bc8
...
@@ -11,7 +11,6 @@ import (
...
@@ -11,7 +11,6 @@ import (
"bytes"
;
"bytes"
;
"fmt"
;
"fmt"
;
"http"
;
"http"
;
"io"
;
"log"
;
"log"
;
"strconv"
;
"strconv"
;
"sync"
;
"sync"
;
...
...
src/pkg/exvar/exvar_test.go
View file @
20011bc8
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
package
exvar
package
exvar
import
(
import
(
"fmt"
;
"json"
;
"json"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/flag/flag_test.go
View file @
20011bc8
...
@@ -6,7 +6,6 @@ package flag_test
...
@@ -6,7 +6,6 @@ package flag_test
import
(
import
(
.
"flag"
;
.
"flag"
;
"fmt"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/fmt/fmt_test.go
View file @
20011bc8
...
@@ -10,7 +10,6 @@ import (
...
@@ -10,7 +10,6 @@ import (
"math"
;
"math"
;
"strings"
;
"strings"
;
"testing"
;
"testing"
;
"unsafe"
;
)
)
func
TestFmtInterface
(
t
*
testing
.
T
)
{
func
TestFmtInterface
(
t
*
testing
.
T
)
{
...
...
src/pkg/go/ast/scope.go
View file @
20011bc8
...
@@ -4,9 +4,6 @@
...
@@ -4,9 +4,6 @@
package
ast
package
ast
import
"go/token"
;
type
Scope
struct
{
type
Scope
struct
{
Outer
*
Scope
;
Outer
*
Scope
;
Names
map
[
string
]
*
Ident
Names
map
[
string
]
*
Ident
...
...
src/pkg/go/doc/comment.go
View file @
20011bc8
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
package
doc
package
doc
import
(
import
(
"fmt"
;
"go/ast"
;
"go/ast"
;
"io"
;
"io"
;
"once"
;
"once"
;
...
...
src/pkg/go/doc/doc.go
View file @
20011bc8
...
@@ -6,13 +6,10 @@ package doc
...
@@ -6,13 +6,10 @@ package doc
import
(
import
(
"container/vector"
;
"container/vector"
;
"fmt"
;
"go/ast"
;
"go/ast"
;
"go/token"
;
"go/token"
;
"io"
;
"regexp"
;
"regexp"
;
"sort"
;
"sort"
;
"strings"
;
)
)
...
...
src/pkg/go/parser/interface.go
View file @
20011bc8
...
@@ -8,11 +8,9 @@ package parser
...
@@ -8,11 +8,9 @@ package parser
import
(
import
(
"bytes"
;
"bytes"
;
"container/vector"
;
"fmt"
;
"fmt"
;
"go/ast"
;
"go/ast"
;
"go/scanner"
;
"go/scanner"
;
"go/token"
;
"io"
;
"io"
;
"os"
;
"os"
;
pathutil
"path"
;
pathutil
"path"
;
...
...
src/pkg/go/parser/parser.go
View file @
20011bc8
...
@@ -10,15 +10,11 @@
...
@@ -10,15 +10,11 @@
package
parser
package
parser
import
(
import
(
"bytes"
;
"container/vector"
;
"container/vector"
;
"fmt"
;
"fmt"
;
"go/ast"
;
"go/ast"
;
"go/scanner"
;
"go/scanner"
;
"go/token"
;
"go/token"
;
"io"
;
"os"
;
"strings"
;
)
)
...
...
src/pkg/go/parser/parser_test.go
View file @
20011bc8
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
package
parser
package
parser
import
(
import
(
"go/ast"
;
"os"
;
"os"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/go/printer/printer_test.go
View file @
20011bc8
...
@@ -10,7 +10,6 @@ import (
...
@@ -10,7 +10,6 @@ import (
"io"
;
"io"
;
"go/ast"
;
"go/ast"
;
"go/parser"
;
"go/parser"
;
"os"
;
"path"
;
"path"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/gob/decoder.go
View file @
20011bc8
...
@@ -8,7 +8,6 @@ import (
...
@@ -8,7 +8,6 @@ import (
"bytes"
;
"bytes"
;
"io"
;
"io"
;
"os"
;
"os"
;
"reflect"
;
"sync"
;
"sync"
;
)
)
...
...
src/pkg/gob/encode.go
View file @
20011bc8
...
@@ -10,7 +10,6 @@ import (
...
@@ -10,7 +10,6 @@ import (
"math"
;
"math"
;
"os"
;
"os"
;
"reflect"
;
"reflect"
;
"sync"
;
"unsafe"
;
"unsafe"
;
)
)
...
...
src/pkg/gob/encoder_test.go
View file @
20011bc8
...
@@ -11,7 +11,6 @@ import (
...
@@ -11,7 +11,6 @@ import (
"reflect"
;
"reflect"
;
"strings"
;
"strings"
;
"testing"
;
"testing"
;
"unsafe"
;
)
)
type
ET2
struct
{
type
ET2
struct
{
...
...
src/pkg/gob/type.go
View file @
20011bc8
...
@@ -8,9 +8,7 @@ import (
...
@@ -8,9 +8,7 @@ import (
"fmt"
;
"fmt"
;
"os"
;
"os"
;
"reflect"
;
"reflect"
;
"strings"
;
"sync"
;
"sync"
;
"unicode"
;
)
)
type
kind
reflect
.
Type
type
kind
reflect
.
Type
...
...
src/pkg/gob/type_test.go
View file @
20011bc8
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
package
gob
package
gob
import
(
import
(
"os"
;
"reflect"
;
"reflect"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/http/client.go
View file @
20011bc8
...
@@ -10,7 +10,6 @@ import (
...
@@ -10,7 +10,6 @@ import (
"bufio"
;
"bufio"
;
"fmt"
;
"fmt"
;
"io"
;
"io"
;
"log"
;
"net"
;
"net"
;
"os"
;
"os"
;
"strconv"
;
"strconv"
;
...
...
src/pkg/http/client_test.go
View file @
20011bc8
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
package
http
package
http
import
(
import
(
"fmt"
;
"io"
;
"io"
;
"strings"
;
"strings"
;
"testing"
;
"testing"
;
...
...
src/pkg/http/request_test.go
View file @
20011bc8
...
@@ -4,11 +4,7 @@
...
@@ -4,11 +4,7 @@
package
http
package
http
import
(
import
"testing"
"fmt"
;
"os"
;
"testing"
;
)
type
stringMultimap
map
[
string
]
[]
string
type
stringMultimap
map
[
string
]
[]
string
...
...
src/pkg/io/io.go
View file @
20011bc8
...
@@ -10,7 +10,6 @@
...
@@ -10,7 +10,6 @@
package
io
package
io
import
(
import
(
"bytes"
;
"os"
;
"os"
;
"strings"
;
"strings"
;
)
)
...
...
src/pkg/json/parse.go
View file @
20011bc8
...
@@ -12,10 +12,7 @@ package json
...
@@ -12,10 +12,7 @@ package json
import
(
import
(
"bytes"
;
"bytes"
;
"fmt"
;
"math"
;
"strconv"
;
"strconv"
;
"strings"
;
"utf8"
;
"utf8"
;
)
)
...
...
src/pkg/net/dialgoogle_test.go
View file @
20011bc8
...
@@ -7,7 +7,6 @@ package net
...
@@ -7,7 +7,6 @@ package net
import
(
import
(
"flag"
;
"flag"
;
"io"
;
"io"
;
"os"
;
"strings"
;
"strings"
;
"syscall"
;
"syscall"
;
"testing"
;
"testing"
;
...
...
src/pkg/net/dnsclient.go
View file @
20011bc8
...
@@ -16,7 +16,6 @@
...
@@ -16,7 +16,6 @@
package
net
package
net
import
(
import
(
"io"
;
"once"
;
"once"
;
"os"
;
"os"
;
"strings"
;
"strings"
;
...
...
src/pkg/net/dnsconfig.go
View file @
20011bc8
...
@@ -6,11 +6,7 @@
...
@@ -6,11 +6,7 @@
package
net
package
net
import
(
import
"os"
"io"
;
"os"
;
"strconv"
;
)
type
_DNS_Config
struct
{
type
_DNS_Config
struct
{
servers
[]
string
;
// servers to use
servers
[]
string
;
// servers to use
...
...
src/pkg/net/net_test.go
View file @
20011bc8
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
package
net
package
net
import
(
import
(
"os"
;
"regexp"
;
"regexp"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/net/port.go
View file @
20011bc8
...
@@ -7,7 +7,6 @@
...
@@ -7,7 +7,6 @@
package
net
package
net
import
(
import
(
"io"
;
"once"
;
"once"
;
"os"
;
"os"
;
)
)
...
...
src/pkg/net/server_test.go
View file @
20011bc8
...
@@ -6,7 +6,6 @@ package net
...
@@ -6,7 +6,6 @@ package net
import
(
import
(
"io"
;
"io"
;
"os"
;
"strings"
;
"strings"
;
"syscall"
;
"syscall"
;
"testing"
;
"testing"
;
...
...
src/pkg/net/timeout_test.go
View file @
20011bc8
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
package
net
package
net
import
(
import
(
"os"
;
"testing"
;
"testing"
;
"time"
;
"time"
;
)
)
...
...
src/pkg/os/proc.go
View file @
20011bc8
...
@@ -6,10 +6,7 @@
...
@@ -6,10 +6,7 @@
package
os
package
os
import
(
import
"syscall"
"syscall"
;
"unsafe"
;
)
var
Args
[]
string
;
// provided by runtime
var
Args
[]
string
;
// provided by runtime
var
Envs
[]
string
;
// provided by runtime
var
Envs
[]
string
;
// provided by runtime
...
...
src/pkg/reflect/type.go
View file @
20011bc8
...
@@ -7,7 +7,6 @@ package reflect
...
@@ -7,7 +7,6 @@ package reflect
import
(
import
(
"runtime"
;
"runtime"
;
"strconv"
;
"strconv"
;
"strings"
;
"unsafe"
;
"unsafe"
;
)
)
...
...
src/pkg/rpc/client.go
View file @
20011bc8
...
@@ -12,7 +12,6 @@ import (
...
@@ -12,7 +12,6 @@ import (
"log"
;
"log"
;
"net"
;
"net"
;
"os"
;
"os"
;
"strconv"
;
"sync"
;
"sync"
;
)
)
...
...
src/pkg/rpc/debug.go
View file @
20011bc8
...
@@ -11,10 +11,7 @@ package rpc
...
@@ -11,10 +11,7 @@ package rpc
import
(
import
(
"fmt"
;
"fmt"
;
"gob"
;
"http"
;
"http"
;
"io"
;
"log"
;
"os"
;
"os"
;
"sort"
;
"sort"
;
"template"
;
"template"
;
...
...
src/pkg/rpc/server_test.go
View file @
20011bc8
...
@@ -5,9 +5,7 @@
...
@@ -5,9 +5,7 @@
package
rpc
package
rpc
import
(
import
(
"gob"
;
"http"
;
"http"
;
"io"
;
"log"
;
"log"
;
"net"
;
"net"
;
"once"
;
"once"
;
...
...
src/pkg/strconv/atof_test.go
View file @
20011bc8
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
package
strconv_test
package
strconv_test
import
(
import
(
"fmt"
;
"os"
;
"os"
;
"reflect"
;
"reflect"
;
.
"strconv"
;
.
"strconv"
;
...
...
src/pkg/strconv/atoi_test.go
View file @
20011bc8
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
package
strconv_test
package
strconv_test
import
(
import
(
"fmt"
;
"os"
;
"os"
;
"reflect"
;
"reflect"
;
.
"strconv"
;
.
"strconv"
;
...
...
src/pkg/strconv/decimal_test.go
View file @
20011bc8
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
package
strconv_test
package
strconv_test
import
(
import
(
"fmt"
;
.
"strconv"
;
.
"strconv"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/strconv/fp_test.go
View file @
20011bc8
...
@@ -6,7 +6,6 @@ package strconv_test
...
@@ -6,7 +6,6 @@ package strconv_test
import
(
import
(
"bufio"
;
"bufio"
;
"fmt"
;
"fmt"
;
"io"
;
"os"
;
"os"
;
"strconv"
;
"strconv"
;
"strings"
;
"strings"
;
...
...
src/pkg/strconv/itoa_test.go
View file @
20011bc8
...
@@ -5,8 +5,6 @@
...
@@ -5,8 +5,6 @@
package
strconv_test
package
strconv_test
import
(
import
(
"fmt"
;
"os"
;
.
"strconv"
;
.
"strconv"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/syscall/syscall.go
View file @
20011bc8
...
@@ -11,8 +11,6 @@
...
@@ -11,8 +11,6 @@
// the manuals for the appropriate operating system.
// the manuals for the appropriate operating system.
package
syscall
package
syscall
import
"unsafe"
func
Syscall
(
trap
,
a1
,
a2
,
a3
uintptr
)
(
r1
,
r2
,
err
uintptr
)
func
Syscall
(
trap
,
a1
,
a2
,
a3
uintptr
)
(
r1
,
r2
,
err
uintptr
)
func
Syscall6
(
trap
,
a1
,
a2
,
a3
,
a4
,
a5
,
a6
uintptr
)
(
r1
,
r2
,
err
uintptr
)
func
Syscall6
(
trap
,
a1
,
a2
,
a3
,
a4
,
a5
,
a6
uintptr
)
(
r1
,
r2
,
err
uintptr
)
func
RawSyscall
(
trap
,
a1
,
a2
,
a3
uintptr
)
(
r1
,
r2
,
err
uintptr
)
func
RawSyscall
(
trap
,
a1
,
a2
,
a3
uintptr
)
(
r1
,
r2
,
err
uintptr
)
...
...
src/pkg/template/format.go
View file @
20011bc8
...
@@ -10,7 +10,6 @@ import (
...
@@ -10,7 +10,6 @@ import (
"bytes"
;
"bytes"
;
"fmt"
;
"fmt"
;
"io"
;
"io"
;
"reflect"
;
"strings"
;
"strings"
;
)
)
...
...
src/pkg/template/template_test.go
View file @
20011bc8
...
@@ -9,8 +9,6 @@ import (
...
@@ -9,8 +9,6 @@ import (
"container/vector"
;
"container/vector"
;
"fmt"
;
"fmt"
;
"io"
;
"io"
;
"os"
;
"reflect"
;
"testing"
;
"testing"
;
)
)
...
...
src/pkg/time/sleep.go
View file @
20011bc8
...
@@ -7,7 +7,6 @@ package time
...
@@ -7,7 +7,6 @@ package time
import
(
import
(
"os"
;
"os"
;
"syscall"
;
"syscall"
;
"unsafe"
;
)
)
// Sleep pauses the current goroutine for ns nanoseconds.
// Sleep pauses the current goroutine for ns nanoseconds.
...
...
src/pkg/time/tick.go
View file @
20011bc8
...
@@ -4,11 +4,6 @@
...
@@ -4,11 +4,6 @@
package
time
package
time
import
(
"syscall"
;
"unsafe"
;
)
// TODO(rsc): This implementation of Tick is a
// TODO(rsc): This implementation of Tick is a
// simple placeholder. Eventually, there will need to be
// simple placeholder. Eventually, there will need to be
// a single central time server no matter how many tickers
// a single central time server no matter how many tickers
...
...
src/pkg/utf8/utf8_test.go
View file @
20011bc8
...
@@ -6,7 +6,6 @@ package utf8_test
...
@@ -6,7 +6,6 @@ package utf8_test
import
(
import
(
"bytes"
;
"bytes"
;
"fmt"
;
"strings"
;
"strings"
;
"testing"
;
"testing"
;
.
"utf8"
;
.
"utf8"
;
...
...
test/bench/binary-tree-freelist.go
View file @
20011bc8
...
@@ -39,7 +39,6 @@ package main
...
@@ -39,7 +39,6 @@ package main
import
(
import
(
"flag"
;
"flag"
;
"fmt"
;
"fmt"
;
"os"
;
)
)
var
n
=
flag
.
Int
(
"n"
,
15
,
"depth"
)
var
n
=
flag
.
Int
(
"n"
,
15
,
"depth"
)
...
...
test/bench/binary-tree.go
View file @
20011bc8
...
@@ -39,7 +39,6 @@ package main
...
@@ -39,7 +39,6 @@ package main
import
(
import
(
"flag"
;
"flag"
;
"fmt"
;
"fmt"
;
"os"
;
)
)
var
n
=
flag
.
Int
(
"n"
,
15
,
"depth"
)
var
n
=
flag
.
Int
(
"n"
,
15
,
"depth"
)
...
...
test/bigalg.go
View file @
20011bc8
...
@@ -6,11 +6,6 @@
...
@@ -6,11 +6,6 @@
package
main
package
main
import
(
"fmt"
;
"os"
;
)
type
T
struct
{
type
T
struct
{
a
float64
;
a
float64
;
b
int64
;
b
int64
;
...
...
test/fixedbugs/bug106.dir/bug1.go
View file @
20011bc8
...
@@ -4,5 +4,5 @@
...
@@ -4,5 +4,5 @@
package
bug1
package
bug1
import
"./bug0"
import
_
"./bug0"
test/fixedbugs/bug107.go
View file @
20011bc8
...
@@ -6,6 +6,7 @@
...
@@ -6,6 +6,7 @@
package
main
package
main
import
os
"os"
import
os
"os"
type
_
os
.
Error
func
f
()
(
os
int
)
{
func
f
()
(
os
int
)
{
// In the next line "os" should refer to the result variable, not
// In the next line "os" should refer to the result variable, not
// to the package.
// to the package.
...
...
test/fixedbugs/bug129.go
View file @
20011bc8
...
@@ -6,7 +6,9 @@
...
@@ -6,7 +6,9 @@
package
foo
package
foo
import
"fmt"
import
"fmt"
func
f
()
{
func
f
()
{
fmt
.
Println
();
fmt
:=
1
;
fmt
:=
1
;
_
=
fmt
;
_
=
fmt
;
}
}
test/fixedbugs/bug133.dir/bug2.go
View file @
20011bc8
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
package
bug2
package
bug2
import
"./bug1"
import
_
"./bug1"
import
"./bug0"
import
"./bug0"
type
T2
struct
{
t
bug0
.
T
}
type
T2
struct
{
t
bug0
.
T
}
...
...
test/fixedbugs/bug163.go
View file @
20011bc8
...
@@ -6,8 +6,6 @@
...
@@ -6,8 +6,6 @@
package
main
package
main
import
"fmt"
func
main
()
{
func
main
()
{
x
⊛
y
:=
1
;
// ERROR "identifier"
x
⊛
y
:=
1
;
// ERROR "identifier"
}
}
test/fixedbugs/bug177.go
View file @
20011bc8
...
@@ -5,7 +5,6 @@
...
@@ -5,7 +5,6 @@
// license that can be found in the LICENSE file.
// license that can be found in the LICENSE file.
package
main
package
main
import
"fmt"
import
"reflect"
import
"reflect"
type
S1
struct
{
i
int
}
type
S1
struct
{
i
int
}
type
S2
struct
{
S1
}
type
S2
struct
{
S1
}
...
...
test/fixedbugs/bug188.go
View file @
20011bc8
...
@@ -9,6 +9,7 @@ package main
...
@@ -9,6 +9,7 @@ package main
import
"sort"
import
"sort"
func
main
()
{
func
main
()
{
sort
.
Sort
(
nil
);
var
x
int
;
var
x
int
;
sort
(
x
);
// ERROR "package"
sort
(
x
);
// ERROR "package"
}
}
test/fixedbugs/bug191.dir/a.go
View file @
20011bc8
...
@@ -7,3 +7,6 @@ package a
...
@@ -7,3 +7,6 @@ package a
func
init
()
{
func
init
()
{
println
(
"a"
);
println
(
"a"
);
}
}
type
T
int
;
test/fixedbugs/bug191.dir/b.go
View file @
20011bc8
...
@@ -7,3 +7,5 @@ package b
...
@@ -7,3 +7,5 @@ package b
func
init
()
{
func
init
()
{
println
(
"b"
);
println
(
"b"
);
}
}
type
V
int
;
test/fixedbugs/bug191.go
View file @
20011bc8
...
@@ -9,5 +9,8 @@ package main
...
@@ -9,5 +9,8 @@ package main
import
.
"./a"
import
.
"./a"
import
.
"./b"
import
.
"./b"
var
_
T
var
_
V
func
main
()
{
func
main
()
{
}
}
test/initsyscall.go
View file @
20011bc8
...
@@ -12,7 +12,6 @@
...
@@ -12,7 +12,6 @@
package
main
package
main
import
"log"
import
"time"
import
"time"
func
f
()
{
func
f
()
{
...
...
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