func (vi *Info) Set(langID uint16, key string, value string) error {
	if vi.lt == nil {
		vi.lt = make(langTable)
	}
	if key == "" {
		return errors.New(errEmptyKey)
	}
	if strings.ContainsRune(key, 0) {
		return errors.New(errKeyContainsNUL)
	}
	if strings.ContainsRune(value, 0) {
		return errors.New(errValueContainsNUL)
	}
	st, ok := vi.lt[langID]
	if !ok {
		st = &stringTable{}
		vi.lt[langID] = st
	}
	(*st)[key] = value
	return nil
}
// Set sets a key/value pair in the Info structure for a specific locale.
//
// Standard keys are defined as constants in this package: version.ProductName, version.CompanyName, ...
//
// Strings must not contain NUL characters.
//
// Language Code Identifiers (LCID) are listed there: https://docs.microsoft.com/en-us/openspecs/windows_protocols/ms-lcid/
//
// langID may also be 0 for neutral.
Set sets a key/value pair in the Info structure for a specific locale.

Standard keys are defined as constants in this package: version.ProductName, version.CompanyName.

Strings must not contain NUL characters.



langID may also be 0 for neutral.
// Set sets a key / value pair in the Info structure for a specific locale . // // Standard keys are defined as constants in this package : version . ProductName version . CompanyName ... // // Strings must not contain NUL characters . // // Language Code Identifiers ( LCID ) are listed there : https : // docs . microsoft . com / en - us / openspecs / windows_protocols / ms - lcid / // // langID may also be 0 for neutral .
func (vi *Info) Set(langID uint16, key string, value string) error {
	if vi.lt == nil {
		vi.lt = make(langTable)
	}
	if key == "" {
		return errors.New(errEmptyKey)
	}
	if strings.ContainsRune(key, 0) {
		return errors.New(errKeyContainsNUL)
	}
	if strings.ContainsRune(value, 0) {
		return errors.New(errValueContainsNUL)
	}
	st, ok := vi.lt[langID]
	if !ok {
		st = &stringTable{}
		vi.lt[langID] = st
	}
	(*st)[key] = value
	return nil
}
func ( vi * Info ) Set ( langID uint16 , key string , value string ) error { if vi . lt == nil { vi . lt = make ( langTable ) } if key == " " { return errors . New ( errEmptyKey ) } if strings . ContainsRune ( key , 0 ) { return errors . New ( errKeyContainsNUL ) } if strings . ContainsRune ( value , 0 ) { return errors . New ( errValueContainsNUL ) } st , ok := vi . lt [ langID ] if ! ok { st = & stringTable { } vi . lt [ langID ] = st } ( * st ) [ key ] = value return nil }
Set sets a key/value pair in the Info structure for a specific locale.
Set sets a key / value pair in the Info structure for a specific locale .