Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 293 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 293 Bytes

sugar

sugar is a comprehensive, efficient, and reusable util function library of go

💡 Usage

You can import sugar using:

import (
    "github.com/phuhao00/sugar"
)

Then use one of the helpers below:

clamp := sugar.Clamp(2, 3, 5)
fmt.Printf("clamp:%v", clamp)