goxls2txt

package module
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 25, 2017 License: MIT Imports: 2 Imported by: 1

README

goxls2txt

Package for golang to convert excel xls files to text.It's a go binding for hroptatyr/xls2txt

Installation

This package can be installed with the go get command:

go get github.com/yanghuxiao/goxls2txt

goxls2txt is cgo package. If you want to build your app using goxls2txt, you need gcc.

Documentation

This package is easy to use,more example see Examples

convert xls to text
package main

import (
	"fmt"

	"github.com/yanghuxiao/goxls2txt"
)

func main() {
	fmt.Println("convert start")
	gx2t := goxls2txt.NewGoXls2Txt()
	_, err := gx2t.Xls2txt("../../Workbook1.xls", "../../Workbook1.txt")
	if err == nil {
		fmt.Println("convert xls to txt successfull")
	}
}

Author

YangHuxiao

Thanks for

Jan Bobrowski

Sebastian Freundt

Documentation

Overview

Copyright (C) 2017 Yanghuxiao <yanghuxiao@vip.qq.com>.

Use of this source code is governed by an MIT-style license that can be found in the LICENSE file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoXls2Txt

type GoXls2Txt struct {
}

func NewGoXls2Txt

func NewGoXls2Txt() *GoXls2Txt

func (*GoXls2Txt) Xls2txt

func (gx2t *GoXls2Txt) Xls2txt(src, dst string) (bool, error)

Directories

Path Synopsis
_examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL