Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Partition Key를 이용해서 값을 가지고 오고, 처리하는 코드 작성하기. #13

Closed
khw7096 opened this issue Apr 30, 2019 · 5 comments

Comments

@khw7096
Copy link
Contributor

khw7096 commented Apr 30, 2019

No description provided.

@khw7096
Copy link
Contributor Author

khw7096 commented May 2, 2019

@khw7096
Copy link
Contributor Author

khw7096 commented May 2, 2019

올해 연도를 받아서 분기 리스트를 생성한다.
2018Q1, 2018Q2, 2018Q3, 2018Q4, 2018QT,
1000, 1000, 1000, 1000, 1000,
2019Q1, 2019Q2, 2019Q3, 2019Q4, 2019QT,
1000, 1000, 1000, 1000, 1000,
2020Q1, 2020Q2, 2020Q3, 2020Q4, 2020QT,
1000, 1000, 1000, 1000, 1000,
2021Q1, 2021Q2, 2021Q3, 2021Q4, 2021QT,
1000, 1000, 1000, 1000, 1000,

@khw7096
Copy link
Contributor Author

khw7096 commented May 2, 2019

테이블을 그리는 오픈소스가 존재한다.

https://github.com/olekukonko/tablewriter

@khw7096
Copy link
Contributor Author

khw7096 commented May 2, 2019

import (
    "github.com/olekukonko/tablewriter"
)

data := [][]string{
    []string{"A", "The Good", "500"},
    []string{"B", "The Very very Bad Man", "288"},
    []string{"C", "The Ugly", "120"},
    []string{"D", "The Gopher", "800"},
}

table := tablewriter.NewWriter(os.Stdout)
table.SetHeader([]string{"Name", "Sign", "Rating"})

for _, v := range data {
    table.Append(v)
}
table.Render() // Send output

@khw7096
Copy link
Contributor Author

khw7096 commented May 3, 2019

done.

@khw7096 khw7096 closed this as completed May 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant