Skip to content

Instantly share code, notes, and snippets.

@ORESoftware
Created February 25, 2024 08:18
Show Gist options
  • Save ORESoftware/3f104e51d5266d81fb809fd93eb20d5d to your computer and use it in GitHub Desktop.
Save ORESoftware/3f104e51d5266d81fb809fd93eb20d5d to your computer and use it in GitHub Desktop.
Main gleamlang file
import gleam_cowboy
import gleam/http.{Request, Response}
import gleam/http/response.{ok}
pub fn main() {
gleam_cowboy.start(fn(_req: Request) {
ok("Hello, Gleam!")
}, on_port: 3000)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment