MCPcopy Create free account
hub / github.com/cogentcore/core / SetMetaData

Method SetMetaData

tensor/table/table.go:365–370  ·  view source on GitHub ↗

SetMetaData sets given meta-data key to given value, safely creating the map if not yet initialized. Standard Keys are: * name -- name of table * desc -- description of table * read-only -- makes gui read-only (inactive edits) for tensorcore.Table * ColumnName:* -- prefix for all column-specific m

(key, val string)

Source from the content-addressed store, hash-verified

363// * ColumnName:* -- prefix for all column-specific meta-data
364// - desc -- description of column
365func (dt *Table) SetMetaData(key, val string) {
366 if dt.MetaData == nil {
367 dt.MetaData = make(map[string]string)
368 }
369 dt.MetaData[key] = val
370}
371
372// CopyMetaDataFrom copies meta data from other table
373func (dt *Table) CopyMetaDataFrom(cp *Table) {

Callers 2

NewTableFunction · 0.95
mainFunction · 0.95

Implementers 1

_cogentcore_org_core_plot_plots_Tableyaegicore/symbols/cogentcore_org-core-

Calls

no outgoing calls

Tested by

no test coverage detected