22 lines
339 B
Go
22 lines
339 B
Go
|
package xmlx
|
||
|
|
||
|
import "os"
|
||
|
import "io"
|
||
|
|
||
|
type ILoader interface {
|
||
|
LoadFile(string) os.Error;
|
||
|
LoadString(string) os.Error;
|
||
|
LoadStream(*io.Reader) os.Error;
|
||
|
}
|
||
|
|
||
|
type ISaver interface {
|
||
|
SaveFile(string) os.Error;
|
||
|
SaveString(string) (string, os.Error);
|
||
|
SaveStream(*io.Writer) os.Error;
|
||
|
}
|
||
|
|
||
|
type ILoaderSaver interface {
|
||
|
ILoader;
|
||
|
ISaver;
|
||
|
}
|