mongoose-crud merupakan aplikasi untuk menyimpan data buku, transaksi, dan customer menggunakan mongo db dan framework mongoose
| Route | HTTP | Description |
|---|---|---|
| /api/books | GET | Mendapatkan data semua buku |
| /api/books | POST | Menambah data buku |
| fatal error: unexpected signal during runtime execution | |
| [signal SIGSEGV: segmentation violation code=0x1 addr=0xb01dfacedebac1e pc=0x7fff204acc9e] | |
| runtime stack: | |
| runtime: unexpected return pc for runtime.sigpanic called from 0x7fff204acc9e | |
| stack: frame={sp:0x7ffeefbff578, fp:0x7ffeefbff5c8} stack=[0x7ffeefb80618,0x7ffeefbff680) | |
| 0x00007ffeefbff478: 0x01007ffeefbff498 0x0000000000000004 | |
| 0x00007ffeefbff488: 0x000000000000001f 0x00007fff204acc9e | |
| 0x00007ffeefbff498: 0x0b01dfacedebac1e 0x0000000000000001 | |
| 0x00007ffeefbff4a8: 0x00000000040362f1 <runtime.throw+0x0000000000000071> 0x00007ffeefbff548 |
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| ) | |
| type book struct { | |
| // set exported field by | |
| // by capitalizing the first letter |
| function mkcd { | |
| mkdir -p "$1" && cd "$1" | |
| } |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <meta name="viewport" content="width=device-width"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| <script id="jsbin-javascript"> |