builtins

package
v0.0.0-...-6ae0033 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Available sync.Map
View Source
var OS = bos{
	Args: os.Args,
}

Functions

This section is empty.

Types

type Fmt

type Fmt struct {
	io.Writer
}

func NewFmt

func NewFmt(w io.Writer) Fmt

func (Fmt) Errorf

func (f Fmt) Errorf(format string, a ...interface{}) error

func (Fmt) GoString

func (f Fmt) GoString() string

func (Fmt) Print

func (f Fmt) Print(a ...interface{}) (n int, err error)

func (Fmt) Printf

func (f Fmt) Printf(format string, a ...interface{}) (n int, err error)

func (Fmt) Println

func (f Fmt) Println(a ...interface{}) (n int, err error)

func (Fmt) Sprint

func (f Fmt) Sprint(a ...interface{}) string

func (Fmt) Sprintf

func (f Fmt) Sprintf(format string, a ...interface{}) string

func (Fmt) Sprintln

func (f Fmt) Sprintln(a ...interface{}) string

type Sort

type Sort struct{}

func (Sort) GoString

func (Sort) GoString() string

func (Sort) Sort

func (Sort) Sort(s sort.Interface)

func (Sort) Strings

func (Sort) Strings(s []string)

type Strings

type Strings struct{}

func (Strings) Compare

func (Strings) Compare(a, b string) int

func (Strings) Contains

func (Strings) Contains(s, substr string) bool

func (Strings) ContainsAny

func (Strings) ContainsAny(s, chars string) bool

func (Strings) ContainsRune

func (Strings) ContainsRune(s string, r rune) bool

func (Strings) Count

func (Strings) Count(s, substr string) int

func (Strings) EqualFold

func (Strings) EqualFold(s, t string) bool

func (Strings) Fields

func (Strings) Fields(s string) []string

func (Strings) HasPrefix

func (Strings) HasPrefix(s, prefix string) bool

func (Strings) HasSuffix

func (Strings) HasSuffix(s, suffix string) bool

func (Strings) Index

func (Strings) Index(s, substr string) int

func (Strings) IndexAny

func (Strings) IndexAny(s, chars string) int

func (Strings) IndexByte

func (Strings) IndexByte(s string, c byte) int

func (Strings) IndexRune

func (Strings) IndexRune(s string, r rune) int

func (Strings) Join

func (Strings) Join(a []string, sep string) string

func (Strings) LastIndex

func (Strings) LastIndex(s, substr string) int

func (Strings) LastIndexAny

func (Strings) LastIndexAny(s, chars string) int

func (Strings) LastIndexByte

func (Strings) LastIndexByte(s string, c byte) int

func (Strings) Repeat

func (Strings) Repeat(s string, count int) string

func (Strings) Replace

func (Strings) Replace(s, old, new string, n int) string

func (Strings) Split

func (Strings) Split(s, sep string) []string

func (Strings) SplitAfter

func (Strings) SplitAfter(s, sep string) []string

func (Strings) SplitAfterN

func (Strings) SplitAfterN(s, sep string, n int) []string

func (Strings) SplitN

func (Strings) SplitN(s, sep string, n int) []string

func (Strings) Title

func (Strings) Title(s string) string

func (Strings) ToLower

func (Strings) ToLower(s string) string

func (Strings) ToTitle

func (Strings) ToTitle(s string) string

func (Strings) ToUpper

func (Strings) ToUpper(s string) string

func (Strings) Trim

func (Strings) Trim(s string, cutset string) string

func (Strings) TrimLeft

func (Strings) TrimLeft(s string, cutset string) string

func (Strings) TrimPrefix

func (Strings) TrimPrefix(s, prefix string) string

func (Strings) TrimRight

func (Strings) TrimRight(s string, cutset string) string

func (Strings) TrimSpace

func (Strings) TrimSpace(s string) string

func (Strings) TrimSuffix

func (Strings) TrimSuffix(s, suffix string) string

type Time

type Time struct {
	ANSIC       string
	UnixDate    string
	RubyDate    string
	RFC822      string
	RFC822Z     string
	RFC850      string
	RFC1123     string
	RFC1123Z    string
	RFC3339     string
	RFC3339Nano string
	Kitchen     string
	Stamp       string
	StampMilli  string
	StampMicro  string
	StampNano   string
	Nanosecond  int
	Microsecond int
	Millisecond int
	Second      int
	Minute      int
	Hour        int
}

func NewTime

func NewTime() Time

func (Time) After

func (Time) After(d int) <-chan time.Time

func (Time) Date

func (Time) Date(year int, month time.Month, day, hour, min, sec, nsec int, loc *time.Location) time.Time

func (Time) FixedZone

func (Time) FixedZone(name string, offset int) *time.Location

func (Time) GoString

func (Time) GoString() string

func (Time) LoadLocation

func (Time) LoadLocation(name string) (*time.Location, error)

func (Time) LoadLocationFromTZData

func (Time) LoadLocationFromTZData(name string, data []byte) (*time.Location, error)

func (Time) NewTicker

func (Time) NewTicker(d int) *time.Ticker

func (Time) NewTimer

func (Time) NewTimer(d int) *time.Timer

func (Time) Now

func (Time) Now() time.Time

func (Time) Parse

func (Time) Parse(layout, value string) (time.Time, error)

func (Time) ParseDuration

func (Time) ParseDuration(s string) (int, error)

func (Time) ParseInLocation

func (Time) ParseInLocation(layout, value string, loc *time.Location) (time.Time, error)

func (Time) Since

func (Time) Since(t time.Time) int

func (Time) Sleep

func (Time) Sleep(d int)

func (Time) Tick

func (Time) Tick(d int) <-chan time.Time

func (Time) Unix

func (Time) Unix(sec int64, nsec int64) time.Time

func (Time) Until

func (Time) Until(t time.Time) int

Jump to

Keyboard shortcuts

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