func (tag PluginStructTag) GetInt() int64 {
	tagValue, tagSet := reflect.StructTag(tag).Lookup(PluginStructTagDefault)
	if !tagSet || len(tagValue) == 0 {
		return 0
	}
	value, err := tstrings.AtoI64(tagValue)
	if err != nil {
		panic(err)
	}
	return value
}
GetInt returns the default integer value for an auto configured field.
When not set, 0 is returned. Metrics are not applied to this value.
package core
import (
	"github.com/trivago/tgo/tstrings"
	"reflect"
	"strconv"
	"strings"
	"time"
)
type PluginStructTag reflect.StructTag
const (
	PluginStructTagDefault = "default"
	PluginStructTagMetric = "metric"
)
func (tag PluginStructTag) GetBool() bool {
	tagValue, tagSet := reflect.StructTag(tag).Lookup(PluginStructTagDefault)
	if !tagSet || tagValue == "" {
		return false
	}
	value, err := strconv.ParseBool(tagValue)
	if err != nil {
		panic(err)
	}
	return value
}