Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SeparateInputString ¶
SeparateInputString separates input for each statement and returns []string. This function strip all comments in input. By default, input will be separated by terminating semicolons `;`. In addition, customTerminators can be passed, and they will be treated as terminating semicolons.
func SeparateInputStringPreserveComments ¶
SeparateInputStringPreserveComments separates input for each statement and returns []string. This function preserve comments in input. By default, input will be separated by terminating semicolons `;`. In addition, customTerminators can be passed, and they will be treated as terminating semicolons.
Types ¶
type InputStatement ¶
func SeparateInput ¶
func SeparateInput(input string, customTerminators ...string) []InputStatement
SeparateInput separates input for each statement and returns []InputStatement. This function strip all comments in input. By default, input will be separated by terminating semicolons `;`. In addition, customTerminators can be passed, and they will be treated as terminating semicolons.
func SeparateInputPreserveComments ¶
func SeparateInputPreserveComments(input string, customTerminators ...string) []InputStatement
SeparateInputPreserveComments separates input for each statement and returns []InputStatement. This function preserve comments in input. By default, input will be separated by terminating semicolons `;`. In addition, customTerminators can be passed, and they will be treated as terminating semicolons.
func (*InputStatement) StripComments ¶
func (stmt *InputStatement) StripComments() InputStatement