mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
single argument panic
note that sortmain.go has been run through hg gofmt; only the formatting of the day initializers changed. i'm happy to revert that formatting if you'd prefer. stop on error in doc/progs/run R=r CC=golang-dev https://golang.org/cl/850041
This commit is contained in:
parent
5d0ec6c076
commit
00f9f0c056
60 changed files with 929 additions and 813 deletions
|
|
@ -15,7 +15,7 @@ import (
|
|||
func Seconds() int64 {
|
||||
sec, _, err := os.Time()
|
||||
if err != nil {
|
||||
panic("time: os.Time: ", err.String())
|
||||
panic(err)
|
||||
}
|
||||
return sec
|
||||
}
|
||||
|
|
@ -25,7 +25,7 @@ func Seconds() int64 {
|
|||
func Nanoseconds() int64 {
|
||||
sec, nsec, err := os.Time()
|
||||
if err != nil {
|
||||
panic("time: os.Time: ", err.String())
|
||||
panic(err)
|
||||
}
|
||||
return sec*1e9 + nsec
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue