From fd1c2badd3e83928943ed17b3786988a06e4e841 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 16 Jan 2024 14:33:16 +0000 Subject: [PATCH] Formatted the code --- Go/Basics/07-arrays-slices.md | 1 + Go/Basics/10-pointers.md | 1 - Go/Concurrency/3-buffered-channels.md | 2 +- Go/wise-words.md | 18 +++++++++--------- 4 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Go/Basics/07-arrays-slices.md b/Go/Basics/07-arrays-slices.md index f161f01..df69448 100644 --- a/Go/Basics/07-arrays-slices.md +++ b/Go/Basics/07-arrays-slices.md @@ -148,6 +148,7 @@ for i, fruit := range fruits { // 1 banana // 2 grapes ``` + --- ### 2D slices or Slice of slices diff --git a/Go/Basics/10-pointers.md b/Go/Basics/10-pointers.md index 01ee4c0..ffa0929 100644 --- a/Go/Basics/10-pointers.md +++ b/Go/Basics/10-pointers.md @@ -85,4 +85,3 @@ func main(){ ``` NOTE that `c` is not a pointer to in the calling fuction but the method still gains access to a pointer to `c`. - \ No newline at end of file diff --git a/Go/Concurrency/3-buffered-channels.md b/Go/Concurrency/3-buffered-channels.md index 1d2ce5d..685f093 100644 --- a/Go/Concurrency/3-buffered-channels.md +++ b/Go/Concurrency/3-buffered-channels.md @@ -317,4 +317,4 @@ func main() { saveBackups(snapshotTicker, saveAfter) fmt.Println() } -``` \ No newline at end of file +``` diff --git a/Go/wise-words.md b/Go/wise-words.md index c821e6f..5f33627 100644 --- a/Go/wise-words.md +++ b/Go/wise-words.md @@ -3,23 +3,23 @@ The [Go Proverbs](https://go-proverbs.github.io/) are a beautiful collection of wise words from Rob Pike, one of Go's creators. > Don't communicate by sharing memory, share memory by communicating. -> +> > Concurrency is not parallelism. -> +> > Channels orchestrate; mutexes serialize. -> +> > The bigger the interface, the weaker the abstraction. -> +> > Make the zero value useful. -> +> > interface{} says nothing. > > Gofmt's style is no one's favorite, yet gofmt is everyone's favorite. -> +> > A little copying is better than a little dependency. -> +> > Syscall must always be guarded with build tags. -> +> > Cgo must always be guarded with build tags. > > Cgo is not Go. @@ -40,4 +40,4 @@ The [Go Proverbs](https://go-proverbs.github.io/) are a beautiful collection of > > Don't panic. -@[youtube](https://www.youtube.com/watch?v=PAAkCSZUG1c) \ No newline at end of file +@[youtube](https://www.youtube.com/watch?v=PAAkCSZUG1c)