_import

package
v1.1.45 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ImportDb                = Import{"database/sql", ""}
	ImportLibPQ             = Import{"github.com/lib/pq", "_"}
	ImportLibPQWOAlias      = Import{"github.com/lib/pq", ""}
	ImportPgxConn           = Import{"github.com/jackc/pgx/v5/pgconn", ""}
	ImportLibSqlite3        = Import{"github.com/mattn/go-sqlite3", "_"}
	ImportLibSqlite3WOAlias = Import{"github.com/mattn/go-sqlite3", ""}
	ImportStrings           = Import{"strings", ""}
	ImportMath              = Import{"math", ""}
	ImportSquirrel          = Import{"github.com/Masterminds/squirrel", "sq"}
	ImportNull              = Import{"gopkg.in/guregu/null.v4", ""}
	ImportFMT               = Import{"fmt", ""}
	ImportErrors            = Import{"github.com/pkg/errors", ""}
	ImportStdErrors         = Import{"errors", ""}
	ImportContext           = Import{"context", ""}
	ImportStrconv           = Import{"strconv", ""}
	ImportSync              = Import{"sync", ""}
	ImportTime              = Import{"time", ""}
	ImportJson              = Import{"encoding/json", ""}
	ImportSQLDriver         = Import{"database/sql/driver", ""}
	ImportGoogleUUID        = Import{"github.com/google/uuid", ""}
	ImportClickhouse        = Import{"github.com/ClickHouse/clickhouse-go/v2", ""}
	ImportClickhouseDriver  = Import{"github.com/ClickHouse/clickhouse-go/v2/lib/driver", ""}
)

Functions

This section is empty.

Types

type Import

type Import struct {
	// contains filtered or unexported fields
}

Import is a type for how to generate import paths.

func (Import) String

func (i Import) String() string

String returns a string representation of the Import.

type ImportSet

type ImportSet struct {
	// contains filtered or unexported fields
}

ImportSet is a set of imports.

func NewImportSet added in v1.1.27

func NewImportSet() *ImportSet

NewImportSet creates a new ImportSet.

func (*ImportSet) Add

func (i *ImportSet) Add(imports ...Import)

Add adds imports to the ImportSet.

func (*ImportSet) Enable

func (i *ImportSet) Enable(imports ...Import)

Enable enables imports in the ImportSet.

func (*ImportSet) GetImports added in v1.1.27

func (i *ImportSet) GetImports() []Import

GetImports returns a slice of all imports in the ImportSet.

func (*ImportSet) String

func (i *ImportSet) String() string

String returns a string representation of the ImportSet.

Jump to

Keyboard shortcuts

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