mirror of
https://github.com/SagerNet/sing-box.git
synced 2024-12-27 19:35:38 +08:00
13 lines
252 B
Go
13 lines
252 B
Go
|
package libbox
|
||
|
|
||
|
// https://github.com/golang/go/issues/46893
|
||
|
// TODO: remove after `bulkBarrierPreWrite: unaligned arguments` fixed
|
||
|
|
||
|
type StringBox struct {
|
||
|
Value string
|
||
|
}
|
||
|
|
||
|
func wrapString(value string) *StringBox {
|
||
|
return &StringBox{Value: value}
|
||
|
}
|