diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..cf198a1 --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,13 @@ +{ + "version": "0.2.0", + "configurations": [ + { + "name": "Debug golang", + "type": "go", + "request": "attach", + "mode": "remote", + "port": 4001, + "host": "127.0.0.1" + } + ] +} diff --git a/README.md b/README.md index aee9cff..917309f 100644 --- a/README.md +++ b/README.md @@ -2,5 +2,6 @@ ```sh docker compose run --rm node yarn install -docker compose up --build +docker compose --profile dev up --build +docker compose --profile debug up --build ``` diff --git a/components/user.templ b/components/user.templ index 899ee49..f008778 100644 --- a/components/user.templ +++ b/components/user.templ @@ -4,7 +4,7 @@ import ( "github.com/logto-io/go/core" ) -templ User(user *core.UserInfoResponse) { +templ User(user core.UserInfoResponse) {
@components.Weather(weather)