Help us shape the future of Go! Take the 2026 Go Developer Survey

string

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2024 License: Apache-2.0, MIT, MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type String

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

func New

func New(value string, tags map[string]string) String

func (*String) GetTag

func (tv *String) GetTag(key string) string

func (*String) GetValue

func (tv *String) GetValue() string

func (String) MarshalJSON

func (tv String) MarshalJSON() ([]byte, error)

MarshalJSON implements the json.Marshaler

func (*String) Scan

func (tv *String) Scan(value interface{}) error

Scan implements the Scanner interface.

func (*String) SetTag

func (tv *String) SetTag(key, value string)

func (*String) SetValue

func (tv *String) SetValue(value string)

func (*String) Tags

func (tv *String) Tags() map[string]string

Return all tags

func (String) Value

func (tv String) Value() (driver.Value, error)

Value implements the driver Valuer interface.

Jump to

Keyboard shortcuts

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