-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
786 additions
and
619 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# 개발환경 구축 방법 | ||
|
||
- go1.19.1 windows/amd64 [https://go.dev/dl/go1.19.1.windows-amd64.msi] | ||
- tdm64-gcc-10.3.0-2.exe [https://jmeubank.github.io/tdm-gcc/articles/2021-05/10.3.0-release] | ||
|
||
|
||
## 32bit 빌드 | ||
|
||
go env 로 아래와 같이 설정되어 있는지확인 | ||
cmd.exe에서 할것 (powersehll에서는 적용이 안됨) | ||
set GOARCH=386 | ||
set CGO_ENABLED=1 | ||
set CC=mingw32-gcc | ||
|
||
// 빌드 방법 | ||
- Reduce complied file size | ||
-ldflags "-s -w" | ||
* dll | ||
go build -ldflags "-s -w" -buildmode=c-shared -o xlsx.dll main.go | ||
* exe | ||
go build -ldflags "-s -w" -o xlsx.exe main.go | ||
|
||
|
||
## 64bit 빌드 | ||
|
||
go env 로 아래와 같이 설정되어 있는지확인 | ||
|
||
set GOARCH=amd64 | ||
set CGO_ENABLED=1 | ||
set CC=x86_64-w64-mingw32-gcc | ||
|
||
// 빌드 방법 | ||
- Reduce complied file size | ||
-ldflags "-s -w" | ||
* dll | ||
go build -ldflags "-s -w" -buildmode=c-shared -o xlsx.dll main.go | ||
* exe | ||
go build -ldflags "-s -w" -o xlsx.exe main.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
background-color:FF00FF00;color:ff0000ff; background-color:ff0000ff;color:ff00ffff; | ||
|
||
|
||
|
||
color:ff0000ff | ||
color:ff0000ff color:ff0000ff;background-color:ffffaaaa color:ff0000ff;background-color:ffff0000 color:aa000000;background-color:ffff00ff background-color:ffff0000 | ||
background-color:aa000000;color:00ffffff color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 | ||
color:ff0000ff color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 | ||
color:ff0000ff color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 | ||
color:ff0000ff color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 | ||
color:ff0000ff color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 | ||
color:ff0000ff color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 color:ff0000ff;background-color:ffff0000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
set GOARCH=386 | ||
set CGO_ENABLED=1 | ||
set CC=mingw32-gcc | ||
go build -ldflags "-s -w" -buildmode=c-shared -o xlsx.dll main.go | ||
go build -ldflags "-s -w" -o xlsx.exe main.go | ||
|
||
set GOARCH=amd64 | ||
set CGO_ENABLED=1 | ||
set CC=x86_64-w64-mingw32-gcc | ||
|
||
go build -ldflags "-s -w" -buildmode=c-shared -o xlsx-x64.dll main.go | ||
go build -ldflags "-s -w" -o xlsx-x64.exe main.go |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module github.com/smok95/xlsx | ||
|
||
go 1.19 | ||
|
||
require github.com/tealeg/xlsx v1.0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo= | ||
github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ= | ||
github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI= | ||
github.com/tealeg/xlsx v1.0.5 h1:+f8oFmvY8Gw1iUXzPk+kz+4GpbDZPK1FhPiQRd+ypgE= | ||
github.com/tealeg/xlsx v1.0.5/go.mod h1:btRS8dz54TDnvKNosuAqxrM1QgN1udgk9O34bDCnORM= | ||
gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
xlsx.exe -in utf8.sample.csv -out result.xlsx -delimiter=tab |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Oops, something went wrong.