Skip to content

Commit

Permalink
Add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
cbdyzj committed Aug 4, 2020
1 parent 6b0e019 commit 60633ed
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,10 @@
[![Release](https://jitpack.io/v/cbdyzj/sugar.svg)](https://jitpack.io/#cbdyzj/sugar)

勉强增加一点Java☕的甜度

```java
byte[] origin = {104, 101, 108, 108, 111, 32, 65, 100, 97};
var in = new ByteArrayInputStream(origin);
var s = use(in, it -> new String(it.readAllBytes(), UTF_8));
assertEquals("hello Ada", s);
```
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ plugins {
}

group = 'org.jianzhao.sugar'
version = '0.0.2'
version = '0.0.3'

sourceCompatibility = '11'
targetCompatibility = '11'
Expand Down

0 comments on commit 60633ed

Please sign in to comment.