1
0
mirror of https://github.com/duke-git/lancet.git synced 2026-02-09 07:02:29 +08:00

docs: update doc style

This commit is contained in:
dudaodong
2022-03-16 18:06:06 +08:00
parent 2bc87d8a6b
commit bc913d70b1
26 changed files with 34 additions and 35 deletions

View File

@@ -5,7 +5,7 @@ Package convertor contains some functions for data type convertion.
## Source:
[https://github.com/duke-git/lancet/blob/main/convertor/convertor.go](https://github.com/duke-git/lancet/blob/main/convertor/convertor.go)
- [https://github.com/duke-git/lancet/blob/main/convertor/convertor.go](https://github.com/duke-git/lancet/blob/main/convertor/convertor.go)
<div STYLE="page-break-after: always;"></div>
@@ -55,7 +55,7 @@ import (
func main() {
colorHex := "#003366"
r, g, b := ColorHexToRGB(colorHex)
r, g, b := convertor.ColorHexToRGB(colorHex)
fmt.Println(r, g, b) //0,51,102
}
```
@@ -85,7 +85,7 @@ func main() {
r := 0
g := 51
b := 102
colorHex := ColorRGBToHex(r, g, b)
colorHex := convertor.ColorRGBToHex(r, g, b)
fmt.Println(colorHex) //#003366
}