-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Description
What version of Go are you using (go version)?
$ go version go version go1.16.2 windows/amd64
Does this issue reproduce with the latest release?
What operating system and processor architecture are you using (go env)?
go env Output
$ go env set GO111MODULE= set GOARCH=amd64 set GOBIN= set GOCACHE=C:\Users\q1\AppData\Local\go-build set GOENV=C:\Users\q1\AppData\Roaming\go\env set GOEXE=.exe set GOFLAGS= set GOHOSTARCH=amd64 set GOHOSTOS=windows set GOINSECURE= set GOMODCACHE=C:\Users\q1\go\pkg\mod set GONOPROXY= set GONOSUMDB= set GOOS=windows set GOPATH=C:\Users\q1\go set GOPRIVATE= set GOPROXY=https://proxy.golang.org,direct set GOROOT=C:\Program Files\Go set GOSUMDB=sum.golang.org set GOTMPDIR= set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64 set GOVCS= set GOVERSION=go1.16.2 set GCCGO=gccgo set AR=ar set CC=gcc set CXX=g++ set CGO_ENABLED=1 set GOMOD=C:\Users\q1\Documents\workspace\go\go.mod set CGO_CFLAGS=-g -O2 set CGO_CPPFLAGS= set CGO_CXXFLAGS=-g -O2 set CGO_FFLAGS=-g -O2 set CGO_LDFLAGS=-g -O2 set PKG_CONFIG=pkg-config set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\q1\AppData\Local\Temp\go-build1384607938=/tmp/go-build -gno-record-gcc-switches
What did you do?
I am a newbie
I tried to work with excelize, followed the structure on https://xuri.me/excelize/ko/base/installation.html
but
package main
import (
"fmt"
"github.com/360EntSecGroup-Skylar/excelize/v2"
)
func main() {
f := excelize.NewFile()
// 워크시트 만들기
index := f.NewSheet("Sheet2")
// 셀 값 설정
f.SetCellValue("Sheet2", "A2", "Hello world.")
f.SetCellValue("Sheet1", "B2", 100)
// 통합 문서에 대 한 기본 워크시트를 설정 합니다
f.SetActiveSheet(index)
// 지정 된 경로를 기반으로 파일 저장
if err := f.SaveAs("Book1.xlsx"); err != nil {
fmt.Println(err)
}
}
I put this code and run
it seems not working saying
imports github.com/360EntSecGroup-Skylar/excelize/v2
imports github.com/360EntSecGroup-Skylar/excelize/v2: import cycle not allowed
I studied and tried days.. I just think it's a bug
if I put version suffix it seems not recognized in the system
What did you expect to see?
I hoped to see the code working and an excel file as an output
What did you see instead?
package command-line-arguments
imports github.com/360EntSecGroup-Skylar/excelize/v2
imports github.com/360EntSecGroup-Skylar/excelize/v2: import cycle not allowed
