// Set converts passed arguments to actual Go types.
346391
func (s *myFlag) Set(arg string) error {
	trace.Println("setting flag", s.field.Name)
	err := assignType(s.fieldValue, arg)
	if err != nil {
		return err
	}
	return nil
}
393522
func (s *String) Set(val string) error {
	*s = String(val)
	return nil
}
921464
func (s *StringValue) Set(val string) error {
	*s = StringValue(val)
	return nil
}
904749
func (pg *GoEvtxMap) Set(path *GoEvtxPath, new GoEvtxElement) error {
	if len(*path) > 0 {
		i := (*pg)[(*path)[0]]
		if len(*path) == 1 {
			(*pg)[(*path)[0]] = new
			return nil
		}
		switch i.(type) {
		case GoEvtxMap:
			p := i.(GoEvtxMap)
			np := (*path)[1:]
			return p.Set(&np, new)
		case map[string]interface{}:
			p := GoEvtxMap(i.(map[string]interface{}))
			np := (*path)[1:]
			return p.Set(&np, new)
		}

	}
	return &ErrEvtxEltNotFound{*path}
}
498701
func (c *config) Set(key string, value interface{}, args ...interface{}) error {
	err := c.handler.Set(key, value, args...)
	c.log(SET, err, toVarArgs(args, key, value)...)
	return err
}
792938
func (vn *VecN) Set(i int, val float32) {
	vn.vec[i] = val
}
788723
func (u *Uint64) Set(s string) error {
	v, err := strconv.ParseUint(s, 0, 64)
	*u = Uint64(v)
	return err
}
659642
func (v *StringMap) Set(name, value string) {
	v.mu.Lock()
	v.values[name] = value
	v.mu.Unlock()
}
71495
func (m *Map) Set(a, b interface{}) *Map {
	m.mapAToB[a] = b
	m.mapBToA[b] = a
	return m
}
721040
func (ft *FlushType) Set(v string) error {
	return flushTypeEnum.FlagSet(ft, v)
}
812740
func Set(v interface{}, err error) (map[interface{}]bool, error) {
	if err != nil {
		return nil, err
	}

	vd, ok := v.(map[interface{}]bool)
	if ok {
		return vd, nil
	}

	return nil, newWrongTypeError(v, vd)
}
6653
func (p *IntParam) Set(s string) error {
	v, err := strconv.ParseInt(s, 0, 64)
	if err != nil {
		return err
	}
	p.val = &v
	return nil
}
1230329
func (s *StringFlag) Set(in string) error {
	s.string = &in
	return nil
}
98807
func (sa *StringsValue) Set(s string) error {
	*sa = append(*sa, s)
	return nil
}
297233
func (m *ColonSeparatedMultimapStringString) Set(value string) error {
	if m.Multimap == nil {
		return fmt.Errorf("no target (nil pointer to map[string][]string)")
	}
	if !m.initialized || *m.Multimap == nil {
		// clear default values, or allocate if no existing map
		*m.Multimap = make(map[string][]string)
		m.initialized = true
	}
	for _, pair := range strings.Split(value, ",") {
		if len(pair) == 0 {
			continue
		}
		kv := strings.SplitN(pair, ":", 2)
		if len(kv) != 2 {
			return fmt.Errorf("malformed pair, expect string:string")
		}
		k := strings.TrimSpace(kv[0])
		v := strings.TrimSpace(kv[1])
		(*m.Multimap)[k] = append((*m.Multimap)[k], v)
	}
	return nil
}
1251302
func (d *Data) Set(key string, value string) {
	d.Values.Set(key, value)
}
457398
func (f *Strings) Set(i string) error {
	*f = append(*f, i)
	return nil
}