wordcount

package
v0.1.0-pre-release-v4 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

plugins/wordcount/wordcount.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type WordCount

type WordCount struct {
	// contains filtered or unexported fields
}

WordCount is a simple plugin to count lines, words, and bytes.

func New

func New() *WordCount

New creates a new instance of the WordCount plugin.

func (*WordCount) Initialize

func (p *WordCount) Initialize(api plugin.EditorAPI) error

Initialize is called when the plugin loads. We register our command here.

func (*WordCount) Name

func (p *WordCount) Name() string

Name returns the unique name of the plugin.

func (*WordCount) Shutdown

func (p *WordCount) Shutdown() error

Shutdown performs cleanup (nothing needed for this simple plugin).

Jump to

Keyboard shortcuts

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