Kaynağa Gözat

SVI Изменения, дополнения

SVI 2 yıl önce
ebeveyn
işleme
55e7438b69
3 değiştirilmiş dosya ile 13 ekleme ve 11 silme
  1. 11 10
      docs/lesson04.md
  2. 1 1
      docs/lesson05.md
  3. 1 0
      docs/lesson06.md

+ 11 - 10
docs/lesson04.md

@@ -1,4 +1,4 @@
-## GORM
+# GORM
 
 **GORM** -- golang object relation model. Библиотека для работы с реляционными БД.
 
@@ -77,18 +77,19 @@ type Model struct {
 
 Список далеко не полный:
 
-- **column**	column db name
-- **type**	column data type, prefer to use compatible general type, e.g: `bool, int, uint, float, string, time, bytes`, which works for all databases, and can be used with other tags together, like not null, size, autoIncrement… specified database data type like varbinary(8) also supported, when using specified database data type, it needs to be a full database data type, for example: `MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT`
-- **serializer**	specifies serializer for how to serialize and deserialize data into db, e.g: `serializer:json/gob/unixtime`
-- **size**	specifies column data size/length, e.g: size:256
-- **primaryKey**	specifies column as primary key
-- **unique**	specifies column as unique
-- **default**	specifies column default value
--  . . .
+- **column** column db name
+- **type** column data type, prefer to use compatible general type, e.g: `bool, int, uint, float, string, time, bytes`, which works for all databases, and can be used with other tags together, like not null, size, autoIncrement… specified database data type like varbinary(8) also supported, when using specified database data type, it needs to be a full database data type, for example: `MEDIUMINT UNSIGNED NOT NULL AUTO_INCREMENT`
+- **serializer** specifies serializer for how to serialize and deserialize data into db, e.g: `serializer:json/gob/unixtime`
+- **size** specifies column data size/length, e.g: size:256
+- **primaryKey** specifies column as primary key
+- **unique** specifies column as unique
+- **default** specifies column default value
+
+. . .
 
 ## Допустимость операций над полем
 
-- **<-**	set field’s __write__ permission,
+- **<-** set field’s __write__ permission,
   - `<-:create `create-only field,
   - `<-:update` update-only field,
   - `<-:false `no write permission,

+ 1 - 1
docs/lesson05.md

@@ -196,7 +196,7 @@ app.Get("/stack", func(c *fiber.Ctx) error {
 })
 ```
 
-## РАбота с кукисами
+## Работа с кукисами
 
 ```golang
 app.Get("/user/delete", func(c *fiber.Ctx) error {

+ 1 - 0
docs/lesson06.md

@@ -0,0 +1 @@
+# Надо подумать