Skip to content

Commit 67f1d16

Browse files
committed
feat: 🎸 Change the case of the first letter of a function
1 parent a7d1c35 commit 67f1d16

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

‎collie.go‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ var (
2929
quality int // 质量
3030
)
3131

32-
type XC struct {
32+
type xc struct {
3333
img image.Image
3434
name string
3535
}
@@ -56,7 +56,7 @@ func retrieveData(root string) (value chan string, err chan error) {
5656
}
5757

5858
// get file send to a chan.
59-
func ReceiveData(file chan string, value chan io.Reader, wg *sync.WaitGroup) {
59+
func receiveData(file chan string, value chan io.Reader, wg *sync.WaitGroup) {
6060
for v := range file {
6161
dif, err := mem.MemDifference()
6262
if err != nil {
@@ -79,15 +79,15 @@ func ReceiveData(file chan string, value chan io.Reader, wg *sync.WaitGroup) {
7979
// resize and create a new photo with only id name.
8080
func DataProcessing(root string, outputFile string, wid int, q int) {
8181
reader := make(chan io.Reader)
82-
b := make(chan *XC)
83-
c := make(chan *XC)
82+
b := make(chan *xc)
83+
c := make(chan *xc)
8484
value, err := retrieveData(root)
8585
//
8686
wg := new(sync.WaitGroup)
8787
wg.Add(2)
8888
for i := 0; i < 2; i++ {
8989
mark(i, "获取文件路径:")
90-
go ReceiveData(value, reader, wg)
90+
go receiveData(value, reader, wg)
9191
}
9292
go func() {
9393
wg.Wait()
@@ -115,7 +115,7 @@ func DataProcessing(root string, outputFile string, wid int, q int) {
115115
if err != nil {
116116
glog.Errorln("无法读取文件:", name1, err)
117117
} else {
118-
b <- &XC{
118+
b <- &xc{
119119
img: img,
120120
name: name1,
121121
}

0 commit comments

Comments
 (0)
⌂ 换网址