File tree 15 files changed +38
-19
lines changed
15 files changed +38
-19
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ and more.
16
16
17
17
# Passing the first stage
18
18
19
- The entry point for your HTTP server implementation is in ` app/server .go ` . Study
19
+ The entry point for your HTTP server implementation is in ` app/main .go ` . Study
20
20
and uncomment the relevant code, and push your changes to pass the first stage:
21
21
22
22
``` sh
@@ -30,8 +30,8 @@ Time to move on to the next stage!
30
30
31
31
Note: This section is for stages 2 and beyond.
32
32
33
- 1 . Ensure you have ` go (1.19 ) ` installed locally
33
+ 1 . Ensure you have ` go (1.24 ) ` installed locally
34
34
1 . Run ` ./your_program.sh ` to run your program, which is implemented in
35
- ` app/server .go ` .
35
+ ` app/main .go ` .
36
36
1 . Commit your changes and run ` git push origin master ` to submit your solution
37
37
to CodeCrafters. Test output will be streamed to your terminal.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
7
7
# Use this to change the Go version used to run your code
8
8
# on Codecrafters.
9
9
#
10
- # Available versions: go-1.22
11
- language_pack : go-1.22
10
+ # Available versions: go-1.24
11
+ language_pack : go-1.24
Original file line number Diff line number Diff line change 8
8
9
9
module github.com/codecrafters-io/http-server-starter-go
10
10
11
- go 1.22
11
+ go 1.24.0
Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:1.7-labs
1
2
FROM golang:1.22-alpine
2
3
4
+ # Ensures the container is re-built if go.mod or go.sum changes
3
5
ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="go.mod,go.sum"
4
6
5
7
WORKDIR /app
6
8
7
- COPY go.mod go.sum ./
9
+ # .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
10
+ COPY --exclude=.git --exclude=README.md . /app
8
11
9
- # Starting from Go 1.20, the go standard library is no loger compiled
10
- # setting the GODEBUG environment to "installgoroot=all" restores the old behavior
12
+ # Starting from Go 1.20, the go standard library is no loger compiled.
13
+ # Setting GODEBUG to "installgoroot=all" restores the old behavior
11
14
RUN GODEBUG="installgoroot=all" go install std
12
15
13
16
RUN go mod download
Original file line number Diff line number Diff line change
1
+ # syntax=docker/dockerfile:1.7-labs
2
+ FROM golang:1.24-alpine
3
+
4
+ # Ensures the container is re-built if go.mod or go.sum changes
5
+ ENV CODECRAFTERS_DEPENDENCY_FILE_PATHS="go.mod,go.sum"
6
+
7
+ WORKDIR /app
8
+
9
+ # .git & README.md are unique per-repository. We ignore them on first copy to prevent cache misses
10
+ COPY --exclude=.git --exclude=README.md . /app
11
+
12
+ # Starting from Go 1.20, the go standard library is no loger compiled.
13
+ # Setting GODEBUG to "installgoroot=all" restores the old behavior
14
+ RUN GODEBUG="installgoroot=all" go install std
15
+
16
+ RUN go mod download
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ and more.
16
16
17
17
# Passing the first stage
18
18
19
- The entry point for your HTTP server implementation is in ` app/server .go ` . Study
19
+ The entry point for your HTTP server implementation is in ` app/main .go ` . Study
20
20
and uncomment the relevant code, and push your changes to pass the first stage:
21
21
22
22
``` sh
@@ -30,8 +30,8 @@ Time to move on to the next stage!
30
30
31
31
Note: This section is for stages 2 and beyond.
32
32
33
- 1 . Ensure you have ` go (1.19 ) ` installed locally
33
+ 1 . Ensure you have ` go (1.24 ) ` installed locally
34
34
1 . Run ` ./your_program.sh ` to run your program, which is implemented in
35
- ` app/server .go ` .
35
+ ` app/main .go ` .
36
36
1 . Commit your changes and run ` git push origin master ` to submit your solution
37
37
to CodeCrafters. Test output will be streamed to your terminal.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -7,5 +7,5 @@ debug: false
7
7
# Use this to change the Go version used to run your code
8
8
# on Codecrafters.
9
9
#
10
- # Available versions: go-1.22
11
- language_pack : go-1.22
10
+ # Available versions: go-1.24
11
+ language_pack : go-1.24
Original file line number Diff line number Diff line change 8
8
9
9
module github.com/codecrafters-io/http-server-starter-go
10
10
11
- go 1.22
11
+ go 1.24.0
File renamed without changes.
Original file line number Diff line number Diff line change 1
- The entry point for your HTTP server implementation is in ` app/server .go ` .
1
+ The entry point for your HTTP server implementation is in ` app/main .go ` .
2
2
3
3
Study and uncomment the relevant code:
4
4
File renamed without changes.
Original file line number Diff line number Diff line change 8
8
9
9
module github.com/codecrafters-io/http-server-starter-go
10
10
11
- go 1.22
11
+ go 1.24.0
Original file line number Diff line number Diff line change 1
1
attributes :
2
- required_executable : go (1.19 )
3
- user_editable_file : app/server .go
2
+ required_executable : go (1.24 )
3
+ user_editable_file : app/main .go
You can’t perform that action at this time.
0 commit comments