github.com/GuanceCloud/cliutils@v1.1.21/point/set.go (about) 1 // Unless explicitly stated otherwise all files in this repository are licensed 2 // under the MIT License. 3 // This product includes software developed at Guance Cloud (https://www.guance.com/). 4 // Copyright 2021-present Guance, Inc. 5 6 package point 7 8 import "time" 9 10 func (p *Point) SetName(name string) { 11 p.pt.Name = name 12 } 13 14 func (p *Point) SetTime(t time.Time) { 15 p.pt.Time = t.UnixNano() 16 }