diff --git a/fa/eBook/05.0.md b/fa/eBook/05.0.md deleted file mode 100644 index ba0e6af1..00000000 --- a/fa/eBook/05.0.md +++ /dev/null @@ -1,13 +0,0 @@ -# 5 Database - -For web developers, the database is at the core of web development. You can save almost anything into a database and query or update data inside it, like user information, products or news articles. - -Go doesn't provide any database drivers, but it does have a driver interface defined in the `database/sql` package. People can develop database drivers based on that interface. In section 5.1, we are going to talk about database driver interface design in Go; in sections 5.2 to 5.4, I will introduce some SQL database drivers to you; in section 5.5, i'll present the ORM that i've developed which is based on the `database/sql` interface standard. It's compatible with most drivers that have implemented the `database/sql` interface, and it makes it easy to access databases idiomatically in Go. - -NoSQL has been a hot topic in recent years. More websites are deciding to use NoSQL databases as their main database instead of just for the purpose of caching. I will introduce you to two NoSQL databases, which are MongoDB and Redis, in section 5.6. - -## Links - -- [Directory](preface.md) -- Previous Chapter: [Chapter 4 Summary](04.6.md) -- Next section: [database/sql interface](05.1.md) diff --git a/fa/eBook/05.0.md.orig b/fa/eBook/05.0.md.orig deleted file mode 100644 index ba0e6af1..00000000 --- a/fa/eBook/05.0.md.orig +++ /dev/null @@ -1,13 +0,0 @@ -# 5 Database - -For web developers, the database is at the core of web development. You can save almost anything into a database and query or update data inside it, like user information, products or news articles. - -Go doesn't provide any database drivers, but it does have a driver interface defined in the `database/sql` package. People can develop database drivers based on that interface. In section 5.1, we are going to talk about database driver interface design in Go; in sections 5.2 to 5.4, I will introduce some SQL database drivers to you; in section 5.5, i'll present the ORM that i've developed which is based on the `database/sql` interface standard. It's compatible with most drivers that have implemented the `database/sql` interface, and it makes it easy to access databases idiomatically in Go. - -NoSQL has been a hot topic in recent years. More websites are deciding to use NoSQL databases as their main database instead of just for the purpose of caching. I will introduce you to two NoSQL databases, which are MongoDB and Redis, in section 5.6. - -## Links - -- [Directory](preface.md) -- Previous Chapter: [Chapter 4 Summary](04.6.md) -- Next section: [database/sql interface](05.1.md) diff --git a/fa/src/1.2/main.go b/fa/src/1.2/main.go deleted file mode 100644 index 132c60a7..00000000 --- a/fa/src/1.2/main.go +++ /dev/null @@ -1,13 +0,0 @@ -// 章节 1.2 -// $GOPATH/src/mathapp/main.go - -package main - -import ( - "fmt" - "mymath" -) - -func main() { - fmt.Printf("Hello, world. Sqrt(2) = %v\n", mymath.Sqrt(2)) -} diff --git a/fa/src/1.2/sqrt.go b/fa/src/1.2/sqrt.go deleted file mode 100644 index 1d596053..00000000 --- a/fa/src/1.2/sqrt.go +++ /dev/null @@ -1,11 +0,0 @@ -// 章节 1.2 -// $GOPATH/src/mymath/sqrt.go -package mymath - -func Sqrt(x float64) float64 { - z := 0.0 - for i := 0; i < 1000; i++ { - z -= (z*z - x) / (2 * x) - } - return z -}