Search found 3 matches
- Sat Feb 25, 2023 10:01 pm
- Forum: ChatGPT
- Topic: Programming using ChatGPT
- Replies: 5
- Views: 44204
Re: Programming using ChatGPT
Excellent, now ask it to add a new endpoint. It worked flawlessly! I simply asked: Can you add a "hello" endpoint? and it gave me this: Sure, here's the modified code with an additional "hello" endpoint: package main import ( "fmt" "net/http" ) func main() { ...
- Sat Feb 25, 2023 9:53 pm
- Forum: ChatGPT
- Topic: Programming using ChatGPT
- Replies: 5
- Views: 44204
Re: Programming using ChatGPT
Okay, it worked. This is what I asked it: "Please create a minimal webserver in Go" and this is what I got: Sure, here's some code to create a minimal web server in Go: package main import ( "fmt" "net/http" ) func main() { http.HandleFunc("/", handler) fmt.Pr...
- Sat Feb 25, 2023 9:45 pm
- Forum: ChatGPT
- Topic: Programming using ChatGPT
- Replies: 5
- Views: 44204
Re: Programming using ChatGPT
I think it is an interesting idea to use ChatGPT to generate code. However, when I tried doing that, I got a reply that it cannot create code: "As an AI language model, I am not able to create code directly." Did I do something wrong?