workbench

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildSQLsInStrings

func BuildSQLsInStrings(sqlFormat string, values []string) []string

func LenStringForSlice

func LenStringForSlice(slice []string, sep string) int

func ReadFileCSVToSQLs

func ReadFileCSVToSQLs(filename, sqlFormat string, skipHeader bool) ([]string, error)

func SliceToSQL

func SliceToSQL(slice []string) string

func SliceToSQLs

func SliceToSQLs(slice []string) []string

func SplitTextLines

func SplitTextLines(text string) []string

Types

type Account

type Account struct {
	ID   string `xml:"Id"`
	Name string `xml:"Name"`
	Type string `xml:"type"`
}

type AccountsSet

type AccountsSet struct {
	Accounts []Account `xml:"records"`
}

func ReadAccountsXML

func ReadAccountsXML(filepath string) (AccountsSet, error)

Jump to

Keyboard shortcuts

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