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 (
"io"
;
"os"
;
"path"
;
"sort"
;
"strings"
;
)
...
...
@@ -47,7 +46,7 @@ func extractEBNF(src []byte) []byte {
i
+=
len
(
open
);
// 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
]
{
if
ch
==
'\n'
{
buf
.
WriteByte
(
'\n'
);
...
...
src/cmd/godoc/godoc.go
View file @
20011bc8
...
...
@@ -40,13 +40,11 @@ import (
"http"
;
"io"
;
"log"
;
"net"
;
"os"
;
pathutil
"path"
;
"sort"
;
"strings"
;
"sync"
;
"syscall"
;
"template"
;
"time"
;
)
...
...
src/cmd/gofmt/gofmt.go
View file @
20011bc8
...
...
@@ -11,10 +11,8 @@ import (
"go/parser"
;
"go/printer"
;
"go/scanner"
;
"io"
;
"os"
;
pathutil
"path"
;
"sort"
;
"strings"
;
)
...
...
src/cmd/gotest/gotest
View file @
20011bc8
...
...
@@ -86,11 +86,23 @@ MAKELEVEL=
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
echo
'package main'
echo
# imports
echo
'import "'
$importpath
'"'
if
echo
"
$tests
"
| egrep
-v
'_test\.'
>
/dev/null
;
then
echo
'import "'
$importpath
'"'
fi
if
$havex
;
then
echo
'import "./_xtest_"'
fi
...
...
@@ -98,20 +110,10 @@ importpath=$(make -s importpath)
# test array
echo
echo
'var tests = []testing.Test {'
# 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: 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
for
i
in
$tests
do
echo
' testing.Test{ "'
$i
'", '
$i
' },'
done
echo
'}'
# body
echo
...
...
src/pkg/archive/tar/reader_test.go
View file @
20011bc8
...
...
@@ -6,7 +6,6 @@ package tar
import
(
"bytes"
;
"fmt"
;
"io"
;
"os"
;
"reflect"
;
...
...
src/pkg/archive/tar/writer_test.go
View file @
20011bc8
...
...
@@ -8,9 +8,6 @@ import (
"bytes"
;
"fmt"
;
"io"
;
"os"
;
"reflect"
;
"strings"
;
"testing"
;
)
...
...
src/pkg/compress/flate/flate_test.go
View file @
20011bc8
...
...
@@ -10,11 +10,7 @@ package flate
import
(
"bytes"
;
"bufio"
;
"io"
;
"os"
;
"reflect"
;
"strconv"
;
"testing"
;
)
...
...
src/pkg/compress/gzip/gunzip_test.go
View file @
20011bc8
...
...
@@ -6,7 +6,6 @@ package gzip
import
(
"bytes"
;
"fmt"
;
"io"
;
"os"
;
"testing"
;
...
...
src/pkg/crypto/aes/aes_test.go
View file @
20011bc8
...
...
@@ -5,7 +5,6 @@
package
aes
import
(
"fmt"
;
"testing"
;
)
...
...
src/pkg/crypto/block/cbc_aes_test.go
View file @
20011bc8
...
...
@@ -14,7 +14,6 @@ import (
"bytes"
;
"crypto/aes"
;
"io"
;
"os"
;
"testing"
;
)
...
...
src/pkg/crypto/block/cfb_aes_test.go
View file @
20011bc8
...
...
@@ -14,7 +14,6 @@ import (
"bytes"
;
"crypto/aes"
;
"io"
;
"os"
;
"testing"
;
)
...
...
src/pkg/crypto/block/cmac.go
View file @
20011bc8
...
...
@@ -7,10 +7,7 @@
package
block
import
(
"io"
;
"os"
;
)
import
"os"
const
(
// minimal irreducible polynomial of degree b
...
...
src/pkg/crypto/block/ctr_aes_test.go
View file @
20011bc8
...
...
@@ -14,7 +14,6 @@ import (
"bytes"
;
"crypto/aes"
;
"io"
;
"os"
;
"testing"
;
)
...
...
src/pkg/crypto/block/ecb_aes_test.go
View file @
20011bc8
...
...
@@ -14,7 +14,6 @@ import (
"bytes"
;
"crypto/aes"
;
"io"
;
"os"
;
"testing"
;
)
...
...
src/pkg/crypto/block/ofb_aes_test.go
View file @
20011bc8
...
...
@@ -14,7 +14,6 @@ import (
"bytes"
;
"crypto/aes"
;
"io"
;
"os"
;
"testing"
;
)
...
...
src/pkg/datafmt/datafmt.go
View file @
20011bc8
...
...
@@ -203,15 +203,12 @@ package datafmt
import
(
"bytes"
;
"container/vector"
;
"fmt"
;
"go/token"
;
"io"
;
"os"
;
"reflect"
;
"runtime"
;
"strconv"
;
"strings"
;
)
...
...
src/pkg/datafmt/datafmt_test.go
View file @
20011bc8
...
...
@@ -6,7 +6,6 @@ package datafmt
import
(
"fmt"
;
"os"
;
"strings"
;
"testing"
;
)
...
...
src/pkg/datafmt/parser.go
View file @
20011bc8
...
...
@@ -6,7 +6,6 @@ package datafmt
import
(
"container/vector"
;
"fmt"
;
"go/scanner"
;
"go/token"
;
"os"
;
...
...
src/pkg/debug/dwarf/entry.go
View file @
20011bc8
...
...
@@ -10,10 +10,7 @@
package
dwarf
import
(
"os"
;
"strconv"
;
)
import
"os"
// a single entry's description: a sequence of attributes
type
abbrev
struct
{
...
...
src/pkg/debug/dwarf/open.go
View file @
20011bc8
...
...
@@ -9,7 +9,6 @@ package dwarf
import
(
"debug/binary"
;
"fmt"
;
"os"
;
)
...
...
src/pkg/debug/gosym/pclntab.go
View file @
20011bc8
...
...
@@ -8,10 +8,7 @@
package
gosym
import
(
"debug/binary"
;
"io"
;
)
import
"debug/binary"
type
LineTable
struct
{
Data
[]
byte
;
...
...
src/pkg/debug/gosym/pclntab_test.go
View file @
20011bc8
...
...
@@ -6,8 +6,6 @@ package gosym
import
(
"debug/elf"
;
"exec"
;
"io"
;
"os"
;
"testing"
;
"syscall"
;
...
...
src/pkg/debug/proc/proc.go
View file @
20011bc8
...
...
@@ -13,15 +13,15 @@ package proc
// and proc_darwin.go do, because deps.bash only looks at
// this file.
import
(
"container/vector"
;
"fmt"
;
"io"
;
_
"container/vector"
;
_
"fmt"
;
_
"io"
;
"os"
;
"runtime"
;
_
"runtime"
;
"strconv"
;
"strings"
;
"sync"
;
"syscall"
;
_
"strings"
;
_
"sync"
;
_
"syscall"
;
)
type
Word
uint64
...
...
src/pkg/ebnf/ebnf.go
View file @
20011bc8
...
...
@@ -24,12 +24,9 @@ package ebnf
import
(
"container/vector"
;
"fmt"
;
"go/scanner"
;
"go/token"
;
"os"
;
"strconv"
;
"strings"
;
"unicode"
;
"utf8"
;
)
...
...
src/pkg/ebnf/parser.go
View file @
20011bc8
...
...
@@ -6,14 +6,10 @@ package ebnf
import
(
"container/vector"
;
"fmt"
;
"go/scanner"
;
"go/token"
;
"os"
;
"strconv"
;
"strings"
;
"unicode"
;
"utf8"
;
)
...
...
src/pkg/exvar/exvar.go
View file @
20011bc8
...
...
@@ -11,7 +11,6 @@ import (
"bytes"
;
"fmt"
;
"http"
;
"io"
;
"log"
;
"strconv"
;
"sync"
;
...
...
src/pkg/exvar/exvar_test.go
View file @
20011bc8
...
...
@@ -5,7 +5,6 @@
package
exvar
import
(
"fmt"
;
"json"
;
"testing"
;
)
...
...
src/pkg/flag/flag_test.go
View file @
20011bc8
...
...
@@ -6,7 +6,6 @@ package flag_test
import
(
.
"flag"
;
"fmt"
;
"testing"
;
)
...
...
src/pkg/fmt/fmt_test.go
View file @
20011bc8
...
...
@@ -10,7 +10,6 @@ import (
"math"
;
"strings"
;
"testing"
;
"unsafe"
;
)
func
TestFmtInterface
(
t
*
testing
.
T
)
{
...
...
src/pkg/go/ast/scope.go
View file @
20011bc8
...
...
@@ -4,9 +4,6 @@
package
ast
import
"go/token"
;
type
Scope
struct
{
Outer
*
Scope
;
Names
map
[
string
]
*
Ident
...
...
src/pkg/go/doc/comment.go
View file @
20011bc8
...
...
@@ -7,7 +7,6 @@
package
doc
import
(
"fmt"
;
"go/ast"
;
"io"
;
"once"
;
...
...
src/pkg/go/doc/doc.go
View file @
20011bc8
...
...
@@ -6,13 +6,10 @@ package doc
import
(
"container/vector"
;
"fmt"
;
"go/ast"
;
"go/token"
;
"io"
;
"regexp"
;
"sort"
;
"strings"
;
)
...
...
src/pkg/go/parser/interface.go
View file @
20011bc8
...
...
@@ -8,11 +8,9 @@ package parser
import
(
"bytes"
;
"container/vector"
;
"fmt"
;
"go/ast"
;
"go/scanner"
;
"go/token"
;
"io"
;
"os"
;
pathutil
"path"
;
...
...
src/pkg/go/parser/parser.go
View file @
20011bc8
...
...
@@ -10,15 +10,11 @@
package
parser
import
(
"bytes"
;
"container/vector"
;
"fmt"
;
"go/ast"
;
"go/scanner"
;
"go/token"
;
"io"
;
"os"
;
"strings"
;
)
...
...
src/pkg/go/parser/parser_test.go
View file @
20011bc8
...
...
@@ -5,7 +5,6 @@
package
parser
import
(
"go/ast"
;
"os"
;
"testing"
;
)
...
...
src/pkg/go/printer/printer_test.go
View file @
20011bc8
...
...
@@ -10,7 +10,6 @@ import (
"io"
;
"go/ast"
;
"go/parser"
;
"os"
;
"path"
;
"testing"
;
)
...
...
src/pkg/gob/decoder.go
View file @
20011bc8
...
...
@@ -8,7 +8,6 @@ import (
"bytes"
;
"io"
;
"os"
;
"reflect"
;
"sync"
;
)
...
...
src/pkg/gob/encode.go
View file @
20011bc8
...
...
@@ -10,7 +10,6 @@ import (
"math"
;
"os"
;
"reflect"
;
"sync"
;
"unsafe"
;
)
...
...
src/pkg/gob/encoder_test.go
View file @
20011bc8
...
...
@@ -11,7 +11,6 @@ import (
"reflect"
;
"strings"
;
"testing"
;
"unsafe"
;
)
type
ET2
struct
{
...
...
src/pkg/gob/type.go
View file @
20011bc8
...
...
@@ -8,9 +8,7 @@ import (
"fmt"
;
"os"
;
"reflect"
;
"strings"
;
"sync"
;
"unicode"
;
)
type
kind
reflect
.
Type
...
...
src/pkg/gob/type_test.go
View file @
20011bc8
...
...
@@ -5,7 +5,6 @@
package
gob
import
(
"os"
;
"reflect"
;
"testing"
;
)
...
...
src/pkg/http/client.go
View file @
20011bc8
...
...
@@ -10,7 +10,6 @@ import (
"bufio"
;
"fmt"
;
"io"
;
"log"
;
"net"
;
"os"
;
"strconv"
;
...
...
src/pkg/http/client_test.go
View file @
20011bc8
...
...
@@ -7,7 +7,6 @@
package
http
import
(
"fmt"
;
"io"
;
"strings"
;
"testing"
;
...
...
src/pkg/http/request_test.go
View file @
20011bc8
...
...
@@ -4,11 +4,7 @@
package
http
import
(
"fmt"
;
"os"
;
"testing"
;
)
import
"testing"
type
stringMultimap
map
[
string
]
[]
string
...
...
src/pkg/io/io.go
View file @
20011bc8
...
...
@@ -10,7 +10,6 @@
package
io
import
(
"bytes"
;
"os"
;
"strings"
;
)
...
...
src/pkg/json/parse.go
View file @
20011bc8
...
...
@@ -12,10 +12,7 @@ package json
import
(
"bytes"
;
"fmt"
;
"math"
;
"strconv"
;
"strings"
;
"utf8"
;
)
...
...
src/pkg/net/dialgoogle_test.go
View file @
20011bc8
...
...
@@ -7,7 +7,6 @@ package net
import
(
"flag"
;
"io"
;
"os"
;
"strings"
;
"syscall"
;
"testing"
;
...
...
src/pkg/net/dnsclient.go
View file @
20011bc8
...
...
@@ -16,7 +16,6 @@
package
net
import
(
"io"
;
"once"
;
"os"
;
"strings"
;
...
...
src/pkg/net/dnsconfig.go
View file @
20011bc8
...
...
@@ -6,11 +6,7 @@
package
net
import
(
"io"
;
"os"
;
"strconv"
;
)
import
"os"
type
_DNS_Config
struct
{
servers
[]
string
;
// servers to use
...
...
src/pkg/net/net_test.go
View file @
20011bc8
...
...
@@ -5,7 +5,6 @@
package
net
import
(
"os"
;
"regexp"
;
"testing"
;
)
...
...
src/pkg/net/port.go
View file @
20011bc8
...
...
@@ -7,7 +7,6 @@
package
net
import
(
"io"
;
"once"
;
"os"
;
)
...
...
src/pkg/net/server_test.go
View file @
20011bc8
...
...
@@ -6,7 +6,6 @@ package net
import
(
"io"
;
"os"
;
"strings"
;
"syscall"
;
"testing"
;
...
...
src/pkg/net/timeout_test.go
View file @
20011bc8
...
...
@@ -5,7 +5,6 @@
package
net
import
(
"os"
;
"testing"
;
"time"
;
)
...
...
src/pkg/os/proc.go
View file @
20011bc8
...
...
@@ -6,10 +6,7 @@
package
os
import
(
"syscall"
;
"unsafe"
;
)
import
"syscall"
var
Args
[]
string
;
// provided by runtime
var
Envs
[]
string
;
// provided by runtime
...
...
src/pkg/reflect/type.go
View file @
20011bc8
...
...
@@ -7,7 +7,6 @@ package reflect
import
(
"runtime"
;
"strconv"
;
"strings"
;
"unsafe"
;
)
...
...
src/pkg/rpc/client.go
View file @
20011bc8
...
...
@@ -12,7 +12,6 @@ import (
"log"
;
"net"
;
"os"
;
"strconv"
;
"sync"
;
)
...
...
src/pkg/rpc/debug.go
View file @
20011bc8
...
...
@@ -11,10 +11,7 @@ package rpc
import
(
"fmt"
;
"gob"
;
"http"
;
"io"
;
"log"
;
"os"
;
"sort"
;
"template"
;
...
...
src/pkg/rpc/server_test.go
View file @
20011bc8
...
...
@@ -5,9 +5,7 @@
package
rpc
import
(
"gob"
;
"http"
;
"io"
;
"log"
;
"net"
;
"once"
;
...
...
src/pkg/strconv/atof_test.go
View file @
20011bc8
...
...
@@ -5,7 +5,6 @@
package
strconv_test
import
(
"fmt"
;
"os"
;
"reflect"
;
.
"strconv"
;
...
...
src/pkg/strconv/atoi_test.go
View file @
20011bc8
...
...
@@ -5,7 +5,6 @@
package
strconv_test
import
(
"fmt"
;
"os"
;
"reflect"
;
.
"strconv"
;
...
...
src/pkg/strconv/decimal_test.go
View file @
20011bc8
...
...
@@ -5,7 +5,6 @@
package
strconv_test
import
(
"fmt"
;
.
"strconv"
;
"testing"
;
)
...
...
src/pkg/strconv/fp_test.go
View file @
20011bc8
...
...
@@ -6,7 +6,6 @@ package strconv_test
import
(
"bufio"
;
"fmt"
;
"io"
;
"os"
;
"strconv"
;
"strings"
;
...
...
src/pkg/strconv/itoa_test.go
View file @
20011bc8
...
...
@@ -5,8 +5,6 @@
package
strconv_test
import
(
"fmt"
;
"os"
;
.
"strconv"
;
"testing"
;
)
...
...
src/pkg/syscall/syscall.go
View file @
20011bc8
...
...
@@ -11,8 +11,6 @@
// the manuals for the appropriate operating system.
package
syscall
import
"unsafe"
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
RawSyscall
(
trap
,
a1
,
a2
,
a3
uintptr
)
(
r1
,
r2
,
err
uintptr
)
...
...
src/pkg/template/format.go
View file @
20011bc8
...
...
@@ -10,7 +10,6 @@ import (
"bytes"
;
"fmt"
;
"io"
;
"reflect"
;
"strings"
;
)
...
...
src/pkg/template/template_test.go
View file @
20011bc8
...
...
@@ -9,8 +9,6 @@ import (
"container/vector"
;
"fmt"
;
"io"
;
"os"
;
"reflect"
;
"testing"
;
)
...
...
src/pkg/time/sleep.go
View file @
20011bc8
...
...
@@ -7,7 +7,6 @@ package time
import
(
"os"
;
"syscall"
;
"unsafe"
;
)
// Sleep pauses the current goroutine for ns nanoseconds.
...
...
src/pkg/time/tick.go
View file @
20011bc8
...
...
@@ -4,11 +4,6 @@
package
time
import
(
"syscall"
;
"unsafe"
;
)
// TODO(rsc): This implementation of Tick is a
// simple placeholder. Eventually, there will need to be
// 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
import
(
"bytes"
;
"fmt"
;
"strings"
;
"testing"
;
.
"utf8"
;
...
...
test/bench/binary-tree-freelist.go
View file @
20011bc8
...
...
@@ -39,7 +39,6 @@ package main
import
(
"flag"
;
"fmt"
;
"os"
;
)
var
n
=
flag
.
Int
(
"n"
,
15
,
"depth"
)
...
...
test/bench/binary-tree.go
View file @
20011bc8
...
...
@@ -39,7 +39,6 @@ package main
import
(
"flag"
;
"fmt"
;
"os"
;
)
var
n
=
flag
.
Int
(
"n"
,
15
,
"depth"
)
...
...
test/bigalg.go
View file @
20011bc8
...
...
@@ -6,11 +6,6 @@
package
main
import
(
"fmt"
;
"os"
;
)
type
T
struct
{
a
float64
;
b
int64
;
...
...
test/fixedbugs/bug106.dir/bug1.go
View file @
20011bc8
...
...
@@ -4,5 +4,5 @@
package
bug1
import
"./bug0"
import
_
"./bug0"
test/fixedbugs/bug107.go
View file @
20011bc8
...
...
@@ -6,6 +6,7 @@
package
main
import
os
"os"
type
_
os
.
Error
func
f
()
(
os
int
)
{
// In the next line "os" should refer to the result variable, not
// to the package.
...
...
test/fixedbugs/bug129.go
View file @
20011bc8
...
...
@@ -6,7 +6,9 @@
package
foo
import
"fmt"
func
f
()
{
fmt
.
Println
();
fmt
:=
1
;
_
=
fmt
;
}
test/fixedbugs/bug133.dir/bug2.go
View file @
20011bc8
...
...
@@ -4,7 +4,7 @@
package
bug2
import
"./bug1"
import
_
"./bug1"
import
"./bug0"
type
T2
struct
{
t
bug0
.
T
}
...
...
test/fixedbugs/bug163.go
View file @
20011bc8
...
...
@@ -6,8 +6,6 @@
package
main
import
"fmt"
func
main
()
{
x
⊛
y
:=
1
;
// ERROR "identifier"
}
test/fixedbugs/bug177.go
View file @
20011bc8
...
...
@@ -5,7 +5,6 @@
// license that can be found in the LICENSE file.
package
main
import
"fmt"
import
"reflect"
type
S1
struct
{
i
int
}
type
S2
struct
{
S1
}
...
...
test/fixedbugs/bug188.go
View file @
20011bc8
...
...
@@ -9,6 +9,7 @@ package main
import
"sort"
func
main
()
{
sort
.
Sort
(
nil
);
var
x
int
;
sort
(
x
);
// ERROR "package"
}
test/fixedbugs/bug191.dir/a.go
View file @
20011bc8
...
...
@@ -7,3 +7,6 @@ package a
func
init
()
{
println
(
"a"
);
}
type
T
int
;
test/fixedbugs/bug191.dir/b.go
View file @
20011bc8
...
...
@@ -7,3 +7,5 @@ package b
func
init
()
{
println
(
"b"
);
}
type
V
int
;
test/fixedbugs/bug191.go
View file @
20011bc8
...
...
@@ -9,5 +9,8 @@ package main
import
.
"./a"
import
.
"./b"
var
_
T
var
_
V
func
main
()
{
}
test/initsyscall.go
View file @
20011bc8
...
...
@@ -12,7 +12,6 @@
package
main
import
"log"
import
"time"
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