// NewByteSliceStr constructs and returns a new ByteSlice object based on the
// given string s. If s is the empty string, the new ByteSlice will be null.
// Otherwise s will be cast to []byte and used to initialize the new, valid
// ByteSlice.
NewByteSliceStr constructs and returns a new ByteSlice object based on the
given string s. If s is the empty string, the new ByteSlice will be null.
Otherwise s will be cast to []byte and used to initialize the new, valid
ByteSlice.
// NewByteSliceStr constructs and returns a new ByteSlice object based on the // given string s . If s is the empty string the new ByteSlice will be null . // Otherwise s will be cast to [] byte and used to initialize the new valid // ByteSlice .
func NewByteSliceStr(s string) ByteSlice {
	return ByteSlice{
		ByteSlice: []byte(s),
		Valid:     true,
	}
}
func NewByteSliceStr ( s string ) ByteSlice { return ByteSlice { ByteSlice : [ ] byte ( s ) , Valid : true , } }
NewByteSliceStr constructs and returns a new ByteSlice object based on the
given string s. If s is the empty string, the new ByteSlice will be null.
NewByteSliceStr constructs and returns a new ByteSlice object based on the given string s . If s is the empty string the new ByteSlice will be null .