promql/parse.go
func (p *parser) offset() time.Duration {
	const ctx = "offset"

	p.next()
	offi := p.expect(ItemDuration, ctx)

	offset, err := parseDuration(offi.val)
	if err != nil {
		p.error(err)
	}

	return offset
}
func (p *parser) offset() time.Duration {
	const ctx = "offset"

	p.next()
	offi := p.expect(ItemDuration, ctx)

	offset, err := parseDuration(offi.val)
	if err != nil {
		p.error(err)
	}

	return offset
}
func ( p * parser ) offset ( ) time . Duration { const ctx = " " p . next ( ) offi := p . expect ( ItemDuration , ctx ) offset , err := parseDuration ( offi . val ) if err != nil { p . error ( err ) } return offset }
// offset parses an offset modifier.
//
//		offset <duration>
//
offset parses an offset modifier . offset <duration >