Skip to content

Commit

Permalink
Merge pull request #38 from tomoish/fix-main
Browse files Browse the repository at this point in the history
Change port
  • Loading branch information
tomoish authored Feb 2, 2024
2 parents 1f239a0 + a7555da commit 9038aa0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/graphs/commit_chart.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func DrawCommitChart(commitsHistory []int, maxCommits int, width int, height int
p.Y.Max = float64(maxCommits) + 5

// ラベルの外に余白を持つ
p.Title.Padding = 10 // タイトル周りの余白
p.Title.Padding = 10 // タイトル周りの余白
p.X.Label.Padding = 2 // X軸ラベル周りの余白
p.Y.Label.Padding = 2 // Y軸ラベル周りの余白

Expand Down
7 changes: 4 additions & 3 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"log"
"net/http"
"strconv"

"github.com/tomoish/readme/funcs"
"github.com/tomoish/readme/graphs"
)
Expand Down Expand Up @@ -114,7 +115,7 @@ import (
// }

// 画像生成エンドポイント
func createhandler(w http.ResponseWriter, r *http.Request) {
func createHandler(w http.ResponseWriter, r *http.Request) {
queryValues := r.URL.Query()
username := queryValues.Get("username")
if r.Method == http.MethodGet {
Expand Down Expand Up @@ -174,9 +175,9 @@ func main() {
// http.HandleFunc("/user", getuserHandler)
// http.HandleFunc("/merge", mergeAllContents)
// http.HandleFunc("/background", getBackgroundHandler)
http.HandleFunc("/create", createhandler)
http.HandleFunc("/create", createHandler)
fmt.Println("Hello, World!")
err := http.ListenAndServe(":8000", nil)
err := http.ListenAndServe(":8080", nil)
if err != nil {
log.Fatalf("HTTP server failed: %v", err)
}
Expand Down

0 comments on commit 9038aa0

Please sign in to comment.