Skip to content

Commit f01fa25

Browse files
committed
add description and tags to many examples,
add struct example, add link to gotools repo in readme.md
1 parent 3ba7079 commit f01fa25

38 files changed

+103
-0
lines changed

advanced/Channel-2.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Description: Channel example 2
2+
// Tags: channel, range, for, loop, close, close channel, close ch
13
package main
24

35
import "fmt"

advanced/advancedimport.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Description: Advanced import examples
2+
// Tags: import, package, namespace, alias, dot, underscore
13
package main
24

35
import (

advanced/aesgcm.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Description: Encrypt and decrypt a string with AES256 in GCM mode
2+
// Tags: aes, gcm, encryption, decryption, authenticated encryption, nonce
13
package main
24

35
import (

advanced/binary_search.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Description: Binary search algorithm implementation in Go
2+
// Tags: binary, search, algorithm, slice, array, sort, sorted, sorted array, sorted slice, sorted
13
package main
24

35
import "fmt"

advanced/bound.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Description: Find lower and upper bound of a target in a sorted array
2+
// Tags: binary, search, algorithm, slice, array, sort, sorted, sorted array, sorted slice, sorted
13
package main
24

35
import "fmt"

advanced/bubble_sort.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Description: Bubble sort algorithm in Go
2+
// Tags: bubble, sort, algorithm, slice, array, sort, sorted, sorted array, sorted slice, sorted
13
package main
24

35
import "fmt"

advanced/channel.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Description: Channels are useful for communications between multiple go routines, even when the routines are not runned in parallel.
2+
// Tags: channel, range, for, loop, close, close channel, close ch
13
package main
24

35
import (

advanced/channel_range.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Description: Channel range
2+
// Tags: channel, range, for, loop, close, close channel, close ch
13
package main
24

35
import "fmt"

advanced/command_line_arguments.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Description: Command line arguments in Go
2+
// Tags: command, line, arguments, flag, flag, flag p
13
package main
24

35
import (

advanced/compress.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Description: Compress stdin to stdout using gzip
2+
// Tags: compress, gzip, compress, compress stdin, compress stdout, compress stdin to stdout, compress stdin to stdout using gzip
13
package main
24

35
import (

0 commit comments

Comments
 (0)