From af5497e70bae154f295ba1d6ff7c02af34b765c9 Mon Sep 17 00:00:00 2001 From: XC-Zero <55583209+XC-Zero@users.noreply.github.com> Date: Wed, 28 Dec 2022 14:11:36 +0800 Subject: [PATCH 1/3] Update data_and_memory.md add code for go --- docs/chapter_data_structure/data_and_memory.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/chapter_data_structure/data_and_memory.md b/docs/chapter_data_structure/data_and_memory.md index 78fcac857..b4c8fbe56 100644 --- a/docs/chapter_data_structure/data_and_memory.md +++ b/docs/chapter_data_structure/data_and_memory.md @@ -74,7 +74,11 @@ comments: true === "Go" ```go title="" - + var numbers =[5]int{} + var decimals =[5]float64{} + // go 里没有char ,但有 rune/byte 代替 char + var characters =[5]byte{} + var booleans =[5]bool{} ``` === "JavaScript" From a4161b5fa2747be17be932d1b5d9227b08a8fad9 Mon Sep 17 00:00:00 2001 From: XC-Zero <55583209+XC-Zero@users.noreply.github.com> Date: Wed, 28 Dec 2022 14:27:28 +0800 Subject: [PATCH 2/3] Update data_and_memory.md update tab to space --- docs/chapter_data_structure/data_and_memory.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/chapter_data_structure/data_and_memory.md b/docs/chapter_data_structure/data_and_memory.md index b4c8fbe56..0a4787845 100644 --- a/docs/chapter_data_structure/data_and_memory.md +++ b/docs/chapter_data_structure/data_and_memory.md @@ -74,11 +74,11 @@ comments: true === "Go" ```go title="" - var numbers =[5]int{} - var decimals =[5]float64{} - // go 里没有char ,但有 rune/byte 代替 char - var characters =[5]byte{} - var booleans =[5]bool{} + var numbers = [5]int{} + var decimals = [5]float64{} + // go 里没有char ,但有 rune/byte 用以代替 char + var characters = [5]byte{} + var booleans = [5]bool{} ``` === "JavaScript" From 78c2b94422818e7c0bcc2dcedec12ce8306a2b49 Mon Sep 17 00:00:00 2001 From: Yudong Jin Date: Thu, 29 Dec 2022 00:49:50 +0800 Subject: [PATCH 3/3] Update data_and_memory.md --- docs/chapter_data_structure/data_and_memory.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/chapter_data_structure/data_and_memory.md b/docs/chapter_data_structure/data_and_memory.md index 0a4787845..3e1e2167c 100644 --- a/docs/chapter_data_structure/data_and_memory.md +++ b/docs/chapter_data_structure/data_and_memory.md @@ -74,9 +74,9 @@ comments: true === "Go" ```go title="" + // 使用多种「基本数据类型」来初始化「数组」 var numbers = [5]int{} var decimals = [5]float64{} - // go 里没有char ,但有 rune/byte 用以代替 char var characters = [5]byte{} var booleans = [5]bool{} ```