git.sr.ht/~pingoo/stdx@v0.0.0-20240218134121-094174641f6e/sysinfo/meta.go (about) 1 // Copyright © 2016 Zlatko Čalušić 2 // 3 // Use of this source code is governed by an MIT-style license that can be found in the LICENSE file. 4 5 package sysinfo 6 7 import "time" 8 9 // Meta information. 10 type Meta struct { 11 Version string `json:"version"` 12 Timestamp time.Time `json:"timestamp"` 13 } 14 15 func (si *SysInfo) getMetaInfo() { 16 si.Meta.Version = Version 17 si.Meta.Timestamp = time.Now() 18 }