Skip to content

Commit 9791e5b

Browse files
committed
initial commit
0 parents  commit 9791e5b

File tree

5 files changed

+74
-0
lines changed

5 files changed

+74
-0
lines changed

.idx/dev.nix

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# To learn more about how to use Nix to configure your environment
2+
# see: https://developers.google.com/idx/guides/customize-idx-env
3+
{ pkgs, ... }: {
4+
# Which nixpkgs channel to use.
5+
channel = "stable-23.11"; # or "unstable"
6+
# Use https://search.nixos.org/packages to find packages
7+
packages = [
8+
pkgs.go
9+
pkgs.nodejs_20
10+
pkgs.nodePackages.nodemon
11+
];
12+
# Sets environment variables in the workspace
13+
env = {};
14+
idx = {
15+
# Search for the extensions you want on https://open-vsx.org/ and use "publisher.id"
16+
extensions = [
17+
"golang.go"
18+
];
19+
workspace = {
20+
onCreate = {
21+
# Open editors for the following files by default, if they exist:
22+
default.openFiles = ["server.go"];
23+
};
24+
};
25+
# Enable previews and customize configuration
26+
previews = {
27+
enable = true;
28+
previews = {
29+
web = {
30+
command = [
31+
"nodemon"
32+
"--signal" "SIGHUP"
33+
"-w" "."
34+
"-e" "go,html"
35+
"-x" "go run server.go -addr localhost:$PORT"
36+
];
37+
manager = "web";
38+
};
39+
};
40+
};
41+
};
42+
}

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
This is a simple hello, world demonstration web server.
2+
3+
It serves version information on /version and answers any other request like /name by saying "Hello, name!".

go.mod

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module mymodule
2+
3+
go 1.20
4+

main.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package main
2+
3+
import "fmt"
4+
5+
func main() {
6+
fmt.Println("Hello World!")
7+
}
8+
9+
// 1. set up a flag for the csv file
10+
// 2. read and parse the file
11+
// 3. Define quiz logic
12+
// 4. Display results

problems.csv

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
5+5,10
2+
7+3,10
3+
1+1,2
4+
8+3,11
5+
1+2,3
6+
8+6,14
7+
3+1,4
8+
1+4,5
9+
5+1,6
10+
2+3,5
11+
3+3,6
12+
2+4,6
13+
5+2,7

0 commit comments

Comments
 (0)