Documentation ¶
Overview ¶
Package kgobject contains helper methods to construct common api KGObject instances
Index ¶
- func ABool(b bool, uintID uint64) api.KGObject
- func AFloat64(f float64, uintID uint64) api.KGObject
- func AInt64(i int64, uintID uint64) api.KGObject
- func AKID(kid uint64) api.KGObject
- func AString(s string, langID uint64) api.KGObject
- func ATimestamp(t time.Time, p api.Precision, uintID uint64) api.KGObject
- func ATimestampY(year int, uintID uint64) api.KGObject
- func ATimestampYM(year int, month int, uintID uint64) api.KGObject
- func ATimestampYMD(year int, month int, day int, uintID uint64) api.KGObject
- func ATimestampYMDH(year, month, day, hour int, uintID uint64) api.KGObject
- func ATimestampYMDHM(year, month, day, hour, minute int, uintID uint64) api.KGObject
- func ATimestampYMDHMS(year, month, day, hour, minute, second int, uintID uint64) api.KGObject
- func ATimestampYMDHMSN(year, month, day, hour, minute, second, nsec int, uintID uint64) api.KGObject
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AFloat64 ¶
AFloat64 returns a new KGObject instance containing the supplied float and Units ID.
func AString ¶
AString returns a new KGObject instance containing the supplied string and language ID.
func ATimestamp ¶
ATimestamp returns a new KGObject instance containing a ATimestamp for the supplied dateTime, precision and Units ID.
func ATimestampY ¶
ATimestampY returns a new KGObject instance containing a Timestamp for the specified year and Units ID.
func ATimestampYM ¶
ATimestampYM returns a new KGObject instance containing a Timestamp for the specified year, month and Units ID.
func ATimestampYMD ¶
ATimestampYMD returns a new KGObject instance containing a Timestamp for the specified year, month, day and Units ID.
func ATimestampYMDH ¶
ATimestampYMDH returns a new KGObject instance containing a Timestamp for the specified year, month, day, hour and Units ID.
func ATimestampYMDHM ¶
ATimestampYMDHM returns a new KGObject instance containing a Timestamp for the specified year, month, day, hour, minutes and Units ID.
func ATimestampYMDHMS ¶
ATimestampYMDHMS returns a new KGObject instance containing a Timestamp for the specified year, month, day, hour, minutes, seconds and Units ID.
Types ¶
This section is empty.