Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion bind.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
package main

import (
"golang.org/x/crypto/ssh"
"log"
"net"

"golang.org/x/crypto/ssh"
)

func connect() {
Expand Down
2 changes: 0 additions & 2 deletions cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,13 +81,11 @@ func ExampleOpenFile() {
if err := f.Close(); err != nil {
log.Fatal(err)
}

}

func createTempFile() {
tmpFile, _ := os.Create("emptyFile.txt")
log.Println(tmpFile)

}

func ExampleTempFile() {
Expand Down
2 changes: 1 addition & 1 deletion code.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func WriteProducts(productsSold []Product, productsLeft []Product, jsonPath stri
allProducts = append(allProducts, product)
}

for i, _ := range productsLeft {
for i := range productsLeft {
productsLeft = append(allProducts, productsLeft[i])
}

Expand Down
2 changes: 1 addition & 1 deletion hex_example.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package main

func HexLiteral() bool {
x := 0xFff
y := 0xFFF
y := 0xFFF
z := 0xfff

return (x == y) && (y == z)
Expand Down
2 changes: 1 addition & 1 deletion sync_example.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ var dataLarge []byte
const size = 64 * 1024 // 65536

func benchmarkLargeSizePool(b *testing.B) {
var bytePool = sync.Pool{
bytePool := sync.Pool{
New: func() interface{} {
b := make([]byte, size)
return b
Expand Down
2 changes: 1 addition & 1 deletion weak_crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func makeMD5Hash() {
}

func generateRSAKey() {
//Generate Private Key
// Generate Private Key
pvk, err := rsa.GenerateKey(rand.Reader, 1024)
if err != nil {
fmt.Println(err)
Expand Down