utils

package
v0.0.0-...-46cb012 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanAST

func CleanAST(a string) string

cleanAST will remove all space and newline from code. We know it will break the AST semantic, but golang doesn't support parse partial code source, we have to do like this. Maybe we can find a better way to compare the AST in go.

func CompareAST

func CompareAST(t *testing.T, a, b string)

func WriteString

func WriteString(w io.Writer, s ...string)

func WriteStringF

func WriteStringF(w io.Writer, format string, args ...interface{})

Types

This section is empty.

Jump to

Keyboard shortcuts

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