Documentation
¶
Overview ¶
Package gi contains the functions that provide better integration with go so a Go Integration (GI) package.
Index ¶
- Constants
- Variables
- func AppendSnapshot(b []byte, s *slip.Scope) []byte
- func Logger() *flavors.Flavor
- type Add
- type Addf
- type Addnew
- type Base64Decode
- type Base64Encode
- type Channel
- func (obj Channel) Append(b []byte) []byte
- func (obj Channel) Close()
- func (obj Channel) Equal(other slip.Object) (eq bool)
- func (obj Channel) Eval(s *slip.Scope, depth int) slip.Object
- func (obj Channel) Hierarchy() []slip.Symbol
- func (obj Channel) Length() int
- func (obj Channel) Pop() slip.Object
- func (obj Channel) Range(s *slip.Scope, caller slip.Caller, depth int)
- func (obj Channel) Simplify() interface{}
- func (obj Channel) String() string
- type ChannelClose
- type ChannelPop
- type ChannelPush
- type CharLength
- type Clearenv
- type Closer
- type Containsp
- type CryptoHash
- type Decrypt
- type DecryptFile
- type DefSystem
- type Dovector
- type Emptyp
- type Encrypt
- type EncryptFile
- type Env
- type FileInfo
- type FilepathJoin
- type Gc
- type Getenv
- type Glob
- type LockPackage
- type MakeApp
- type MakeChannel
- type MakeOctets
- type MakeTime
- type MakeUUID
- type Mapv
- type Memstat
- type MethodErrorClass
- type MethodErrorQualifier
- type Now
- type OctetLength
- type OctetsToString
- type PackageLockedp
- type Panic
- type ParseFloat
- type Popper
- type Prefixp
- type PrettyPrint
- type ProcessID
- type Range
- type Ranger
- type ReadAll
- type ReadEach
- type ReadPush
- type Recover
- type RegexFind
- type RegexFindAll
- type RegexMatch
- type ReplaceAll
- type ReplaceFirst
- type Run
- type Save
- type Select
- type SendSignal
- type Setenv
- type SignalWait
- type Snapshot
- type Split
- type Strcat
- type StringRepeat
- type StringToOctets
- type Suffixp
- type TimeAdd
- type TimeAfter
- type TimeChannel
- func (obj TimeChannel) Append(b []byte) []byte
- func (obj TimeChannel) Equal(other slip.Object) (eq bool)
- func (obj TimeChannel) Eval(s *slip.Scope, depth int) slip.Object
- func (obj TimeChannel) Hierarchy() []slip.Symbol
- func (obj TimeChannel) Length() int
- func (obj TimeChannel) Pop() slip.Object
- func (obj TimeChannel) Range(s *slip.Scope, caller slip.Caller, depth int)
- func (obj TimeChannel) Simplify() interface{}
- func (obj TimeChannel) String() string
- type TimeComponents
- type TimeElapsed
- type TimeFormat
- type TimeIn
- type TimeTicker
- type TimeToUniversal
- type TimeUnix
- type TimeUtc
- type Timep
- type TrimPrefix
- type TrimSpace
- type TrimSuffix
- type UUID
- func (obj UUID) Append(b []byte) []byte
- func (obj UUID) AppendIETF(b []byte) []byte
- func (obj UUID) Bytes() []byte
- func (obj UUID) Equal(other slip.Object) (eq bool)
- func (obj UUID) Eval(s *slip.Scope, depth int) slip.Object
- func (obj UUID) Hierarchy() []slip.Symbol
- func (obj UUID) IETF() string
- func (obj UUID) IsNil() bool
- func (obj UUID) LoadForm() slip.Object
- func (obj UUID) Simplify() interface{}
- func (obj UUID) String() string
- type UUIDString
- type UUIDValues
- type UniversalToTime
- type UnixTime
- type UnlockPackage
- type Unsetenv
- type Unzip
- type WithInputFromOctets
- type WithZipReader
- type WithZipWriter
- type Zip
Constants ¶
const ChannelSymbol = slip.Symbol("channel")
ChannelSymbol is the symbol with a value of "channel".
const TimeChannelSymbol = slip.Symbol("time-channel")
TimeChannelSymbol is the symbol with a value of "time-channel".
const UUIDSymbol = slip.Symbol("uuid")
UUIDSymbol is the symbol with a value of "uuid".
Variables ¶
var ( // Pkg is the Gi package. Pkg = slip.Package{ Name: "gi", Nicknames: []string{"go-integration", "golang-integration"}, Doc: "Home of symbols defined for the Go Integration functions, variables, and constants.", PreSet: slip.DefaultPreSet, } )
Functions ¶
func AppendSnapshot ¶ added in v1.1.0
AppendSnapshot appends a snapshot to a []byte.
Types ¶
type Base64Decode ¶ added in v0.9.5
Base64Decode represents the base64-decode function.
type Base64Encode ¶ added in v0.9.5
Base64Encode represents the base64-encode function.
type Channel ¶
Channel is a chan of Objects.
type ChannelClose ¶
ChannelClose represents the channel-close function.
type ChannelPop ¶
ChannelPop represents the channelPop function.
type ChannelPush ¶
ChannelPush represents the channelPush function.
type CharLength ¶ added in v0.9.5
CharLength represents the char-length function.
type Closer ¶ added in v0.9.7
type Closer interface {
// Close the channel.
Close()
}
Closer is an interface for closing a channel.
type CryptoHash ¶ added in v1.1.0
CryptoHash represents the crypto-hash function.
type DecryptFile ¶ added in v1.1.0
DecryptFile represents the decrypt-file function.
type EncryptFile ¶ added in v1.1.0
EncryptFile represents the encrypt-file function.
type FilepathJoin ¶ added in v0.7.0
FilepathJoin represents the filepath-join function.
type LockPackage ¶ added in v0.9.5
LockPackage represents the lock-package function.
type MakeChannel ¶
MakeChannel represents the makeChannel function.
type MakeOctets ¶ added in v0.9.5
MakeOctets represents the make-octets function.
type MethodErrorClass ¶ added in v0.7.0
MethodErrorClass represents the method-error-class function.
type MethodErrorQualifier ¶ added in v0.7.0
MethodErrorQualifier represents the method-error-qualifier function.
type OctetLength ¶ added in v0.9.5
OctetLength represents the octet-length function.
type OctetsToString ¶ added in v0.8.0
OctetsToString represents the octets-to-string function.
type PackageLockedp ¶ added in v0.9.5
PackageLockedp represents the package-locked-p function.
type ParseFloat ¶ added in v0.7.0
ParseFloat represents the parse-float function.
type PrettyPrint ¶ added in v1.1.0
PrettyPrint represents the pretty-print function.
type Ranger ¶ added in v0.9.9
type Ranger interface {
// Range over the values in a collection or channel.
Range(s *slip.Scope, caller slip.Caller, depth int)
}
Ranger is an interface for ranging over a collection of values or a channel.
type RegexFindAll ¶ added in v0.9.0
RegexFindAll represents the regex-find-all function.
type RegexMatch ¶ added in v0.9.0
RegexMatch represents the regex-match function.
type ReplaceAll ¶ added in v0.9.0
ReplaceAll represents the replace-all function.
type ReplaceFirst ¶ added in v0.9.0
ReplaceFirst represents the replace-first function.
type SendSignal ¶ added in v0.9.5
SendSignal represents the send-signal function.
type SignalWait ¶ added in v0.9.5
SignalWait represents the signal-wait function.
type StringRepeat ¶ added in v0.8.0
StringRepeat represents the string-repeat function.
type StringToOctets ¶ added in v0.8.0
StringToOctets represents the string-to-octets function.
type TimeChannel ¶ added in v0.9.7
TimeChannel is a chan of time.Time that pops slip.Time Objects.
func (TimeChannel) Append ¶ added in v0.9.7
func (obj TimeChannel) Append(b []byte) []byte
Append a buffer with a representation of the Object.
func (TimeChannel) Equal ¶ added in v0.9.7
func (obj TimeChannel) Equal(other slip.Object) (eq bool)
Equal returns true if this Object and the other are equal in value.
func (TimeChannel) Hierarchy ¶ added in v0.9.7
func (obj TimeChannel) Hierarchy() []slip.Symbol
Hierarchy returns the class hierarchy as symbols for the channel.
func (TimeChannel) Length ¶ added in v0.9.7
func (obj TimeChannel) Length() int
Length returns the length of the object.
func (TimeChannel) Pop ¶ added in v0.9.7
func (obj TimeChannel) Pop() slip.Object
Pop a value from a channel.
func (TimeChannel) Simplify ¶ added in v0.9.7
func (obj TimeChannel) Simplify() interface{}
Simplify by returning the string representation of the flavor.
func (TimeChannel) String ¶ added in v0.9.7
func (obj TimeChannel) String() string
String representation of the Object.
type TimeComponents ¶ added in v0.9.7
TimeComponents represents the time-components function.
type TimeElapsed ¶ added in v0.9.7
TimeElapsed represents the time-elapsed function.
type TimeFormat ¶
TimeFormat represents the timeFormat function.
type TimeTicker ¶ added in v0.9.7
TimeTicker represents the time-ticker function.
type TimeToUniversal ¶ added in v1.0.0
TimeToUniversal represents the time-to-universal function.
type TrimPrefix ¶ added in v0.9.0
TrimPrefix represents the trim-prefix function.
type TrimSuffix ¶ added in v0.9.0
TrimSuffix represents the trim-suffix function.
type UUID ¶ added in v0.9.0
type UUID [2]uint64
UUID is a pair of uint64 as an array which represents a Version 4 UUID.
func NewUUID ¶ added in v0.9.0
func NewUUID() (u UUID)
NewUUID create a new version 4, a random UUID.
func UUIDParse ¶ added in v0.9.0
UUIDParse parses a UUID formatted string and create a new UUID. The function is tolerant of the format but will return a zero UUID if parsing fails.
func (UUID) AppendIETF ¶ added in v0.9.0
AppendIETF appends an IETF string representation of the UUID.
func (UUID) Equal ¶ added in v0.9.0
Equal returns true if this Object and the other are equal in value.
func (UUID) Hierarchy ¶ added in v0.9.0
Hierarchy returns the class hierarchy as symbols for the uuid.
func (UUID) LoadForm ¶ added in v1.3.1
LoadForm returns a form that can be evaluated to create the object.
type UUIDString ¶ added in v0.9.0
UUIDString represents the uuid-string function.
type UUIDValues ¶ added in v0.9.0
UUIDValues represents the uuid-values function.
type UniversalToTime ¶ added in v1.0.0
UniversalToTime represents the universal-to-time function.
type UnlockPackage ¶ added in v0.9.5
UnlockPackage represents the unlock-package function.
type WithInputFromOctets ¶ added in v1.1.0
WithInputFromOctets represents the with-input-from-octets function.
type WithZipReader ¶ added in v1.1.0
WithZipReader represents the with-zip-reader function.
type WithZipWriter ¶ added in v1.1.0
WithZipWriter represents the with-zip-writer function.
Source Files
¶
- add.go
- addf.go
- addnew.go
- base64-decode.go
- base64-encode.go
- channel-close.go
- channel-pop.go
- channel-push.go
- channel.go
- char-length.go
- clearenv.go
- closer.go
- containsp.go
- crypto-hash.go
- decrypt-file.go
- decrypt.go
- defsystem.go
- doc.go
- dovector.go
- emptyp.go
- encrypt-file.go
- encrypt.go
- env.go
- file-info.go
- filepath-join.go
- gc.go
- getenv.go
- glob.go
- lock-package.go
- logger.go
- make-app.go
- make-channel.go
- make-octets.go
- make-time.go
- make-uuid.go
- mapv.go
- memstat.go
- method-error-class.go
- method-error-qualifier.go
- now.go
- octet-length.go
- octets-to-string.go
- package-locked-p.go
- panic.go
- parse-float.go
- pkg.go
- popper.go
- prefixp.go
- pretty-print.go
- process-id.go
- range.go
- ranger.go
- read-all.go
- read-each.go
- read-push.go
- recover.go
- regex-find-all.go
- regex-find.go
- regex-match.go
- replace-all.go
- replace-first.go
- run.go
- save.go
- select.go
- send-signal.go
- setenv.go
- signal-wait.go
- snapshot.go
- split.go
- strcat.go
- string-repeat.go
- string-to-octets.go
- suffixp.go
- system.go
- time-add.go
- time-after.go
- time-components.go
- time-elapsed.go
- time-format.go
- time-in.go
- time-ticker.go
- time-to-universal.go
- time-unix.go
- time-utc.go
- timechannel.go
- timep.go
- trim-prefix.go
- trim-space.go
- trim-suffix.go
- universal-to-time.go
- unix-time.go
- unlock-package.go
- unsetenv.go
- unzip.go
- uuid-string.go
- uuid-values.go
- uuid.go
- with-input-from-octets.go
- with-zip-reader.go
- with-zip-writer.go
- zip.go