Skip to content

Commit fb0e383

Browse files
authored
Create README.md
1 parent 641e955 commit fb0e383

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
[![Maven Central](https://img.shields.io/maven-central/v/io.github.stslex/compiler-plugin)](https://central.sonatype.com/search?namespace=io.github.stslex)
2+
3+
> Check annotated functions arguments. If they don't change - return last result.
4+
> Functions could be logged.
5+
6+
import compiler plugin:
7+
```kotlin
8+
dependencies {
9+
implementation("io.github.stslex:compiler-plugin:0.0.1")
10+
kotlinCompilerPluginClasspath("io.github.stslex:compiler-plugin:0.0.1")
11+
}
12+
```
13+
14+
in code:
15+
```kotlin
16+
import io.github.stslex.compiler_plugin.DistinctUntilChangeFun
17+
18+
@DistinctUntilChangeFun
19+
fun setUserName(username: String){
20+
// function logic
21+
}
22+
```

0 commit comments

Comments
 (0)