Skip to content

Commit

Permalink
added information about pointers and Go lang 'int' support
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandr Sokolovskii committed Jan 4, 2019
1 parent 5ffaf6d commit a02dc10
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ go test ./...
| byte | byte |
| short | int16 |
| int | int32 |
| long | int64 |
| long | int64, int |
| float | float32 |
| double | float64 |
| char | ignite.Char |
Expand Down Expand Up @@ -221,6 +221,8 @@ go test ./...
| NULL | nil |
| Complex Object | ignite.ComplexObject |

**Note:** pointers (*byte, *int32, *string, *uuid.UUID, *[]time.Time, etc.) are supported also.

*`Date` is outdated type. It's recommended to use `Timestamp` type.
If you still need `Date` type use `ignite.ToDate()` function when you **put** date:

Expand All @@ -232,7 +234,7 @@ err := c.CachePut("CacheGet", false, "Date", ignite.ToDate(t)) // ToDate() conve
t, err = c.CacheGet("CacheGet", false, "Date") // 't' is time.Time, you don't need any converting
```

*`Time` is outdated type. It's recommended to use `Timestamp` type.
**`Time` is outdated type. It's recommended to use `Timestamp` type.
If you still need `Time` type use `ignite.ToTime()` function when you **put** time:

```go
Expand Down

0 comments on commit a02dc10

Please sign in to comment.