Jelajahi Sumber

style: code style

2637309949@qq.com 5 tahun lalu
induk
melakukan
5e04677af9
2 mengubah file dengan 6 tambahan dan 5 penghapusan
  1. 5 5
      backend/sort.md
  2. 1 0
      git/standard.md

+ 5 - 5
backend/sort.md

@@ -9,7 +9,7 @@ Use one of the functions
 * [`sort.Float64s`](https://golang.org/pkg/sort/#Float64s)
 * [`sort.Strings`](https://golang.org/pkg/sort/#Strings)
 
-```
+```go
 s := []int{4, 2, 3, 1}
 sort.Ints(s)
 fmt.Println(s) // [1 2 3 4]
@@ -26,7 +26,7 @@ fmt.Println(s) // [1 2 3 4]
 * To sort the slice while keeping the original order of equal elements,
     use [`sort.SliceStable`](https://golang.org/pkg/sort/#SliceStable) instead.
 
-```
+```go
 family := []struct {
     Name string
     Age  int
@@ -52,7 +52,7 @@ fmt.Println(family) // [{David 2} {Eve 2} {Alice 23} {Bob 25}]
     [`sort.Interface`](https://golang.org/pkg/sort/#Interface)
     [interface](https://yourbasic.org/golang/interfaces-explained/).
 
-```
+```go
 type Interface interface {
         // Len is the number of elements in the collection.
         Len() int
@@ -66,7 +66,7 @@ type Interface interface {
 
 Here’s an example.
 
-```
+```go
 type Person struct {
     Name string
     Age  int
@@ -98,7 +98,7 @@ you must maintain a separate data structure.
 
 This code example uses a slice of keys to sort a map in key order.
 
-```
+```go
 m := map[string]int{"Alice": 2, "Cecil": 1, "Bob": 3}
 
 keys := make([]string, 0, len(m))

+ 1 - 0
git/standard.md

@@ -7,6 +7,7 @@ test 分支(测试分支) 测试分支
 
 release 分支(正式分支) 正式分支
 
+
 二、基于分支开发说明
 
 所有代码的主分支是master, 从git clone下载后进行git fetch, git checkout master, 其次在功能开发时, 如果是并行开发的功能以及未再最新排期的功能需要checkout一个新分支feature开发, 待开发完合并进test分支进行测试环境的测试, 最后合并成release分支,最终打上tag版本标记.