Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

It's still ugly to use line-continuation mark to realize allman style #1

Open
diyism opened this issue Jul 14, 2021 · 1 comment
Open

Comments

@diyism
Copy link

diyism commented Jul 14, 2021

It's still ugly to use line-continuation mark to realize allman style:

package main
import
(   "fmt"
)


func main()/
{   if false/
    {   fmt.Println("jack")
        fmt.Println("forkgo")
    } else/
    {   fmt/
           .Println("hello")
        fmt.Println("forkgo")
    }
}

ref: golang#39421

@diyism
Copy link
Author

diyism commented Jul 16, 2021

Fixed

Now support:

package main
import
(   "fmt"
)


func main()
{   if false
    {   fmt.Println("jack")
        fmt.Println("forkgo")
    } else
    {   fmt/
           .Println("hello")
        fmt.Println("forkgo")
    }
}

diyism pushed a commit that referenced this issue Apr 27, 2022
rand.Prime does not guarantee the precise prime selection algorithm as
part of its contract. For example, it changed slightly in CL 387554. We
want to ensure that no tests come to rely on it staying the same, so
just like other cryptographic functions that use randomness in an
unspecified way (ECDSA signing, RSA PKCS #1 v1.5 encryption, RSA key
generation), make it randomly read an extra byte or not.

Change-Id: Ib9079c03360812d412b7c21d5a06caadabb4a8bf
Reviewed-on: https://go-review.googlesource.com/c/go/+/391554
Run-TryBot: Filippo Valsorda <[email protected]>
Auto-Submit: Filippo Valsorda <[email protected]>
Trust: Filippo Valsorda <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Roland Shoemaker <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant