# Functions
BytesToString accepts bytes and returns their string presentation instead of string() this method doesn't generate memory allocations, BUT it is not safe to use anywhere because it points this helps on 0 memory allocations.
Command executes a command in shell and returns it's output, it's block version.
CommandBuilder creates a Cmd object and returns it accepts 2 parameters, one is optionally first parameter is the command (string) second variatic parameter is the argument(s) (slice of string)
the difference from the normal Command function is that you can re-use this Cmd, it doesn't execute until you call its Command function.
Deserialize accepts an encoded string and a data struct which will be filled with the desierialized string using gob decoder.
DeserializeBytes converts the bytes to an object using gob decoder.
Exists returns true if directory||file exists.
FindLower returns the smaller number between a and b.
HTMLEscape returns a string which has no valid html code.
MustCommand executes a command in shell and returns it's output, it's block version.
NewBufferPool creates a new BufferPool bounded to the given size.
Random takes a parameter (int) and returns random slice of byte ex: var randomstrbytes []byte; randomstrbytes = utils.Random(32).
RandomString accepts a number(10 for example) and returns a random string using simple but fairly safe random algorithm.
Serialize serialize any type to gob bytes and after returns its the base64 encoded string.
SerializeBytes serializa bytes using gob encoder and returns them.
StringToBytes accepts string and returns their []byte presentation instead of byte() this method doesn't generate memory allocations, BUT it is not safe to use anywhere because it points this helps on 0 memory allocations.
# Constants
ContentBINARY is the string of "application/octet-stream response headers.
# Variables
AssetsDirectory the path which iris saves some assets came from the internet ( used in iris control plugin (to download the html,css,js) and for iris command line tool to download the packages).
PathSeparator is the string of os.PathSeparator.
# Structs
BufferPool implements a pool of bytes.Buffers in the form of a bounded channel.
No description provided by the author