We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9504f98 commit 6c36229Copy full SHA for 6c36229
README.md
@@ -1,2 +1,20 @@
1
# sugar
2
sugar is a comprehensive, efficient, and reusable util function library of go
3
+
4
5
+## 💡 Usage
6
7
+You can import `sugar` using:
8
9
+```go
10
+import (
11
+ "github.com/phuhao00/sugar"
12
+)
13
+```
14
15
+Then use one of the helpers below:
16
17
18
+clamp := sugar.Clamp(2, 3, 5)
19
+fmt.Printf("clamp:%v", clamp)
20
z_test.go
@@ -0,0 +1,11 @@
+package sugar
+ "fmt"
+ "testing"
+func TestClamp(t *testing.T) {
+ clamp := Clamp(2, 3, 5)
+ fmt.Printf("clamp:%v", clamp)
+}
0 commit comments