utils

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirOf

func DirOf(path string) (string, error)

dirOf returns the name of the directory that `path` is contained by

func NullOutArgs

func NullOutArgs(query string) string

nullOutArgs takes a string containing an SQL query and replaces all substrings which match the regex `\$[0-9]+` outside of quotes with the string "NULL".

func RandomName

func RandomName(base string) string

func WriteCompletely

func WriteCompletely(w io.Writer, data []byte) error

func WriteGoFile

func WriteGoFile(path string, rawSrc []byte) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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