utils

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanCr

func CleanCr(body string) string

CleanCr if os is windows, newline symbol is `\r\n`, replace to '\n' because textarea.Model use '\n'

Types

type StrBuffer added in v0.2.0

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

func NewStrBuffer added in v0.2.0

func NewStrBuffer(val ...string) *StrBuffer

NewStrBuffer the constructor, only use val[0]

func (*StrBuffer) NewLine added in v0.2.0

func (b *StrBuffer) NewLine() *StrBuffer

NewLine append '\n' to buffer

func (*StrBuffer) String added in v0.2.0

func (b *StrBuffer) String() string

func (*StrBuffer) Write added in v0.2.0

func (b *StrBuffer) Write(str string) *StrBuffer

Jump to

Keyboard shortcuts

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