Update count.go

This commit is contained in:
kuoi 2022-01-15 11:49:39 +00:00 committed by GitHub
parent 7049e607c3
commit eb831287cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,6 +12,7 @@ type charset struct {
} }
// 遍历文件得到基本数据 // 遍历文件得到基本数据
// get basic data
func fas_sum() []dna { func fas_sum() []dna {
sum := []dna{} sum := []dna{}
for i, f := range file_input { for i, f := range file_input {
@ -22,6 +23,7 @@ func fas_sum() []dna {
} }
// 整合若干文件的统计 // 整合若干文件的统计
// combine the data from different files
func fas_count(sum_nex []dna) []charset { func fas_count(sum_nex []dna) []charset {
fas_charset := []charset{} fas_charset := []charset{}
for k, v := range sum_nex { for k, v := range sum_nex {