본문 바로가기
728x90

Golang9

go-echarts 사용 전 준비 오늘 또 go chart 그리는 것을 찾다 보니까 https://blog.logrocket.com/visualizing-data-go-echarts/ Visualizing data in Golang with go-echarts - LogRocket Blog Practice a better way of visualizing data in Go with the go-echarts library. Build a bar chart, pie chart, line graph, and word cloud in Go. blog.logrocket.com 이 라이브러리를 발견했다. 예제도 따라 하기 쉽게 만들어놓아서 예제로 실습을 해보았다. https://github.com/go-echarts/go-echarts GitH.. 2022. 9. 28.
go-chart 그래프 여러 개 출력 시 변하는 색상 확인하기 저번 시간에는 go-chart 그래프를 여러 개 출력하는 방법에 대해 포스팅했다. 이번에는 go-chart로 그래프를 여러 개 출력했을 때 기본으로 나오는 그래프 색상이 어떤 식으로 나오는지 살펴볼 것이다! 저번 포스팅을 한번 보고 오는 걸 추천한다! https://java-coding.tistory.com/66 go-chart 그래프 여러 개 출력하기 저번 포스팅에서 go-chart를 github에서 import 해서 그래프를 출력하는 방법에 대해 작성했었다. 이번에는 그래프를 여러 개 출력하는 방법을 알아보자~! 이 글을 처음 보시는 분들은 저번 포스팅을 java-coding.tistory.com 그래프 1개 색상 : 파란색 전체 코드 (main.go) 더보기 package main import ( .. 2022. 9. 27.
go-chart 그래프 여러 개 출력하기 저번 포스팅에서 go-chart를 github에서 import 해서 그래프를 출력하는 방법에 대해 작성했었다. 이번에는 그래프를 여러 개 출력하는 방법을 알아보자~! 이 글을 처음 보시는 분들은 저번 포스팅을 한번 보고 오시는 걸 추천한다!! https://java-coding.tistory.com/65 go-chart 사용해서 그래프 그리기 go언어로 그래프를 그려야 해서 그래프를 그리는 라이브러리가 있나 찾아보다가 go-chart 라이브러리를 발견했다. https://github.com/vicanso/go-charts GitHub - vicanso/go-charts: A charts library for Golan.. java-coding.tistory.com 전체 코드 (main.go) packag.. 2022. 9. 27.
go-chart 사용해서 그래프 그리기 go언어로 그래프를 그려야 해서 그래프를 그리는 라이브러리가 있나 찾아보다가 go-chart 라이브러리를 발견했다. https://github.com/vicanso/go-charts GitHub - vicanso/go-charts: A charts library for Golang A charts library for Golang. Contribute to vicanso/go-charts development by creating an account on GitHub. github.com 이제 이걸 사용해서 그래프를 그려보려 했다. 어떻게 만들어야 할지 모르겠어서 youtubu를 찾아보다가 이 동영상을 발견했다. https://www.youtube.com/watch?v=VQeceaFif4c 동영상을 보면.. 2022. 9. 26.
[FPDF] Failed to initialize parser: Failed to read pdf: Failed to read xref table: Expected xref to start with ‘xref’. Got: 103 GoFPDF로 PDF template을 import 하려고 하는데 계속 이런 에러가 발생했다. > Failed to initialize parser: Failed to read pdf: Failed to read xref table: Expected xref to start with ‘xref’. Got: 103 https://github.com/phpdave11/gofpdi/issues/16 Failed to initialize parser: Failed to read pdf: Failed to read xref table: Expected xref to start with 'xref' · Issue #16 · p Certain formats of PDF documents do not contain t.. 2022. 9. 7.
Go(Golang) 학습할 때 유용한 사이트 Go 언어 공식사이트 https://go.dev/ The Go Programming Language DevOps & Site Reliability With fast build times, lean syntax, an automatic formatter and doc generator, Go is built to support both DevOps and SRE. go.dev 프로그래머스 30분 Go https://programmers.co.kr/learn/courses/13 30분 Go 평가 4.6 11개의 평가 ★★★★★10 ★★★★0 ★★★0 ★★0 ★1 이금춘 2022.03.02 18:57 Epikem 2021.12.24 17:29 김우람 2021.12.10 23:02 최종민 2021.03.24 1.. 2022. 8. 22.
Go(Golang)의 fmt.Errorf() Golang의 fmt.Errorf() 함수에 대해 알아보자! https://pkg.go.dev/fmt fmt package - fmt - Go Packages Print, Println, and Printf lay out their arguments differently. In this example we can compare their behaviors. Println always adds blanks between the items it prints, while Print adds blanks only between non-string arguments and Printf does exactly what i pkg.go.dev fmt.Errorf() 함수를 사용해 에러가 발생한 값과 매개변수의 정보를.. 2022. 8. 19.
IntelliJ에서 Build하는 방법 오늘은 IntelliJ에서 Build 하는 방법을 살펴보자~! Golang을 이용하여 진행하였다. 먼저 프로젝트를 만들어 준 다음에 간단한 실행 코드를 써줬다. 이 프로그램을 Terminal로 실행을 하면 이렇게 출력이 된다. 근데 나중에 코드가 더 길어졌을 때 디버깅도 하고 싶고 버튼만 눌러서 프로젝트를 실행시키고 싶을 수도 있다. 비활성화되어있는 버튼들을 활성시켜서 사용할 수 있게 만들어보자! Add Configuration...을 누르면 이런 창이 뜬다. 여기서 +나 Add new...를 누르고 Go Build를 선택해준다. Go Build가 열리면 Run kind를 Directory로 설정해준다. 빨간 네모칸 세 곳을 다 똑같이 설정해준다! 경로는 실행할 파일 경로! main.go가 있는 경로.. 2022. 8. 9.
728x90