_import

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2024 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", ""}
	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"}
	ImportFMT               = Import{"fmt", ""}
	ImportErrors            = Import{"github.com/pkg/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", ""}
)

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 map[Import]bool

ImportSet is a set of imports.

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) 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