Documentation ¶
Overview ¶
Package conv provides some conversion and reading functions used across multiple commands.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToString ¶
BytesToString converts a byte slice into an equivalent string. Via the lnbr parameter you can set when to break lines. If lnbr is larger than 0 a new line is added every lnbr bytes.
func FileOrStdin ¶
FileOrStdin reads data from a file with the name arg, or from stdin if arg == "-".
func TextOrStdin ¶
TextOrStdin returns arg, or from reads from stdin if arg == "-".
func TextToByteSlice ¶
TextToByteSlice converts a string in form of gocode into an equivalent byte slice.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.