golang

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(ext *sqlite.ExtensionApi, opt *options.Options) (_ sqlite.ErrorCode, err error)

Register registers golang related functionality as a SQLite extension

Types

type Exclude

type Exclude struct {
	Mod Version
}

type GoModFile

type GoModFile struct {
	Version Version    `json:"version"`
	Go      string     `json:"go"`
	Require []*Require `json:"require"`
	Exclude []*Exclude `json:"exclude"`
	Replace []*Replace `json:"replace"`
	Retract []*Retract `json:"retract"`
}

type GoModToJSON

type GoModToJSON struct{}

func (*GoModToJSON) Apply

func (f *GoModToJSON) Apply(context *sqlite.Context, value ...sqlite.Value)

func (*GoModToJSON) Args

func (f *GoModToJSON) Args() int

func (*GoModToJSON) Deterministic

func (f *GoModToJSON) Deterministic() bool

type Replace

type Replace struct {
	Old Version `json:"old"`
	New Version `json:"new"`
}

type Require

type Require struct {
	Mod      Version `json:"mod"`
	Indirect bool    `json:"indirect,omitempty"`
}

type Retract

type Retract struct {
	VersionInterval
	Rationale string `json:"rationale"`
}

type Version

type Version struct {
	Path    string `json:"path"`
	Version string `json:"version,omitempty"`
}

type VersionInterval

type VersionInterval struct {
	Low  string `json:"low"`
	High string `json:"high"`
}

Jump to

Keyboard shortcuts

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