kgobject

package
v0.0.0-...-6719cd2 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package kgobject contains helper methods to construct common api KGObject instances

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ABool

func ABool(b bool, uintID uint64) api.KGObject

ABool returns an new KGObject instance containing a Boolean value and Units ID.

func AFloat64

func AFloat64(f float64, uintID uint64) api.KGObject

AFloat64 returns a new KGObject instance containing the supplied float and Units ID.

func AInt64

func AInt64(i int64, uintID uint64) api.KGObject

AInt64 returns a new KGObject instance containing the supplied int and Units ID.

func AKID

func AKID(kid uint64) api.KGObject

AKID returns an new KGObject instance containing a AKID value.

func AString

func AString(s string, langID uint64) api.KGObject

AString returns a new KGObject instance containing the supplied string and language ID.

func ATimestamp

func ATimestamp(t time.Time, p api.Precision, uintID uint64) api.KGObject

ATimestamp returns a new KGObject instance containing a ATimestamp for the supplied dateTime, precision and Units ID.

func ATimestampY

func ATimestampY(year int, uintID uint64) api.KGObject

ATimestampY returns a new KGObject instance containing a Timestamp for the specified year and Units ID.

func ATimestampYM

func ATimestampYM(year int, month int, uintID uint64) api.KGObject

ATimestampYM returns a new KGObject instance containing a Timestamp for the specified year, month and Units ID.

func ATimestampYMD

func ATimestampYMD(year int, month int, day int, uintID uint64) api.KGObject

ATimestampYMD returns a new KGObject instance containing a Timestamp for the specified year, month, day and Units ID.

func ATimestampYMDH

func ATimestampYMDH(year, month, day, hour int, uintID uint64) api.KGObject

ATimestampYMDH returns a new KGObject instance containing a Timestamp for the specified year, month, day, hour and Units ID.

func ATimestampYMDHM

func ATimestampYMDHM(year, month, day, hour, minute int, uintID uint64) api.KGObject

ATimestampYMDHM returns a new KGObject instance containing a Timestamp for the specified year, month, day, hour, minutes and Units ID.

func ATimestampYMDHMS

func ATimestampYMDHMS(year, month, day, hour, minute, second int, uintID uint64) api.KGObject

ATimestampYMDHMS returns a new KGObject instance containing a Timestamp for the specified year, month, day, hour, minutes, seconds and Units ID.

func ATimestampYMDHMSN

func ATimestampYMDHMSN(year, month, day, hour, minute, second, nsec int, uintID uint64) api.KGObject

ATimestampYMDHMSN returns a new KGObject instance containing a Timestamp for the specified year, month, day, hour, minutes, seconds, nanoseonds, and Units ID.

Types

This section is empty.

Jump to

Keyboard shortcuts

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