linebreakconverter

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2022 License: MIT Imports: 2 Imported by: 0

README

Package linebreakconverter

Documentation

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertLinebreakToUnix

func ConvertLinebreakToUnix(input string) (result string, n int, err error)

ConvertLinebreakToUnix converts

  • Windows: \r\n (CRLF)
  • Mac: \r (CR)
  • Unix/Linux: \n (LF)

into

  • Unix/Linux: \n (LF)

linebreaks

func ConvertLinebreakToUnixReader

func ConvertLinebreakToUnixReader(r io.Reader) io.Reader

ConvertLinebreakToUnixReader returns an io.Reader that converts

  • Windows: \r\n (CRLF)
  • Mac: \r (CR)
  • Unix/Linux: \n (LF)

into

  • Unix/Linux: \n (LF)

linebreaks

func ConvertLinebreakToUnixWriter

func ConvertLinebreakToUnixWriter(r io.Writer) io.Writer

ConvertLinebreakToUnixWriter returns an io.Writer that converts

  • Windows: \r\n (CRLF)
  • Mac: \r (CR)
  • Unix/Linux: \n (LF)

into

  • Unix/Linux: \n (LF)

linebreaks

func ConvertLinebreakToWindows

func ConvertLinebreakToWindows(input string) (result string, n int, err error)

ConvertLinebreakToWindows converts

  • Windows: \r\n (CRLF)
  • Mac: \r (CR)
  • Unix/Linux: \n (LF)

into

  • Windows: \r\n (CRLF)

linebreaks

func ConvertLinebreakToWindowsReader

func ConvertLinebreakToWindowsReader(r io.Reader) io.Reader

ConvertLinebreakToWindowsReader returns an io.Reader that converts

  • Windows: \r\n (CRLF)
  • Mac: \r (CR)
  • Unix/Linux: \n (LF)

into

  • Windows: \r\n (CRLF)

linebreaks

func ConvertLinebreakToWindowsWriter

func ConvertLinebreakToWindowsWriter(r io.Writer) io.Writer

ConvertLinebreakToWindowsWriter returns an io.Writer that converts

  • Windows: \r\n (CRLF)
  • Mac: \r (CR)
  • Unix/Linux: \n (LF)

into

  • Windows: \r\n (CRLF)

linebreaks

Types

This section is empty.

Jump to

Keyboard shortcuts

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