words

package
v0.21.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 9, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WordsCount

type WordsCount struct {
	// Word 不包括标点符号
	Word int32
	// Punctuation 标点符号数量
	Punctuation int32
}

WordsCount 字数统计模型

func Count

func Count(content string) *WordsCount

Count 统计字数

func (*WordsCount) Pure

func (wc *WordsCount) Pure() int32

Pure 字数,不包括标点符号

func (*WordsCount) Total

func (wc *WordsCount) Total() int32

Total 总字数,包括标点符号

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL