mirror of
https://github.com/dolthub/dolt.git
synced 2026-01-29 03:08:47 -06:00
15 lines
247 B
Go
15 lines
247 B
Go
package types
|
|
|
|
type String interface {
|
|
Value
|
|
|
|
Blob() Blob
|
|
|
|
// Slurps the entire string into memory. You obviously don't want to do this if the string might be large.
|
|
String() string
|
|
}
|
|
|
|
func NewString(s string) String {
|
|
return flatString{s}
|
|
}
|