Documentation ¶
Index ¶
- Constants
- func ConvertFilePathByOS(path string) string
- func Fib(n int) int
- func FileSize(fileName string) int64
- func GbkToUtf8(s []byte) ([]byte, error)
- func GetBinDirectory() string
- func LoadObjFromJsonFile(filename string, obj interface{}) (err error)
- func LoadObjFromXmlFile(filename string, obj interface{}) (err error)
- func PrintBuf(buffer []byte, dataLen int)
- func SaveObjToJsonFile(filename string, obj interface{}) (err error)
- func SaveObjToXmlFile(filename string, obj interface{}) (err error)
- func Utf8ToGbk(s []byte) ([]byte, error)
Constants ¶
View Source
const INT_SIZE int = int(unsafe.Sizeof(0))
Variables ¶
This section is empty.
Functions ¶
func LoadObjFromJsonFile ¶
从json文件中反序列化读出对象
func LoadObjFromXmlFile ¶
从xml文件中反序列号读出对象
func SaveObjToJsonFile ¶
将对象序列号写入json文件
func SaveObjToXmlFile ¶
将对象序列化写入xml文件
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.