зеркало из
https://github.com/6543/go-hexcolor
synced 2025-07-15 14:52:56 +00:00
add godocs docu
Этот коммит содержится в:
родитель
a9b81cfa0c
Коммит
7398be3efb
33
doc.go
Обычный файл
33
doc.go
Обычный файл
@ -0,0 +1,33 @@
|
|||||||
|
// Copyright 2020 6543. All rights reserved.
|
||||||
|
// Use of this source code is governed by a MIT-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
|
/*
|
||||||
|
|
||||||
|
Package hexcolor is a simple hexcolor normalizer
|
||||||
|
|
||||||
|
Installation
|
||||||
|
|
||||||
|
go get -u github.com/6543/go-hexcolor
|
||||||
|
|
||||||
|
Example
|
||||||
|
|
||||||
|
```go
|
||||||
|
package main
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
"github.com/6543/go-hexcolor"
|
||||||
|
)
|
||||||
|
|
||||||
|
func main() {
|
||||||
|
c, err := hexcolor.NewHexColor("#adf")
|
||||||
|
if err != nil {
|
||||||
|
panic(err)
|
||||||
|
}
|
||||||
|
fmt.Println(c.ToString())
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
*/
|
||||||
|
package hexcolor
|
@ -1,3 +1,7 @@
|
|||||||
|
// Copyright 2020 6543. All rights reserved.
|
||||||
|
// Use of this source code is governed by a MIT-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package hexcolor
|
package hexcolor
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -1,3 +1,7 @@
|
|||||||
|
// Copyright 2020 6543. All rights reserved.
|
||||||
|
// Use of this source code is governed by a MIT-style
|
||||||
|
// license that can be found in the LICENSE file.
|
||||||
|
|
||||||
package hexcolor
|
package hexcolor
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user