Skip to content

Commit 91c36f8

Browse files
author
Syyong
committed
Merge branch 'master' of https://github.com/syyongx/php2go
2 parents 544d2dc + 7c0a6e2 commit 91c36f8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# php2go
2-
Use Golang to implement PHP's common built-in functions. About 120+ functions have been implemented.
2+
Use Golang to implement PHP's common built-in functions. About 140+ functions have been implemented.
33

44
## Install
55
```shell
@@ -192,4 +192,4 @@ Ternary(condition bool, trueVal, falseVal interface{}) interface{}
192192
```
193193

194194
## LICENSE
195-
php2go source code is licensed under the [MIT](https://github.com/syyongx/php2go/blob/master/LICENSE) Licence.
195+
php2go source code is licensed under the [MIT](https://github.com/syyongx/php2go/blob/master/LICENSE) Licence.

php2go.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func Checkdate(month, day, year int) bool {
6666
}
6767
switch month {
6868
case 4, 6, 9, 11:
69-
if day == 31 {
69+
if day > 30 {
7070
return false
7171
}
7272
case 2:
@@ -1440,6 +1440,7 @@ func Fgetcsv(handle *os.File, length int, delimiter rune) ([][]string, error) {
14401440
}
14411441

14421442
// disk_free_space()
1443+
// Only supports Unix/Linux operating systems
14431444
func DiskFreeSpace(directory string) (uint64, error) {
14441445
fs := syscall.Statfs_t{}
14451446
err := syscall.Statfs(directory, &fs)
@@ -1450,6 +1451,7 @@ func DiskFreeSpace(directory string) (uint64, error) {
14501451
}
14511452

14521453
// disk_total_space()
1454+
// Only supports Unix/Linux operating systems
14531455
func DiskTotalSpace(directory string) (uint64, error) {
14541456
fs := syscall.Statfs_t{}
14551457
err := syscall.Statfs(directory, &fs)

0 commit comments

Comments
 (0)