Simple JSON Rest API in Go (tutorial) - Creation & Consumption

preview_player
Показать описание
This video will show you how to create a simple JSON Rest endpoint using Go's net/http package, after which I show you how to consume the API back into a usable form.

Рекомендации по теме
Комментарии
Автор

Good tutorial. Go is full of "Oh yeah, and I have to do this" Cheers

salkdjfasldkfjsdlk
Автор

What is the autocomplete you are using? Im using GoSublime but it dosent autocomplete more then basic syntax in go...  

Yoieh
Автор

I enjoyed this.  Thanks.  Good presentation speed (imo).

chris.dillon
Автор

Is there any possibility you could create a video showing us how to implement the POST method to post data to the api?

alexcons
Автор

I wonder how difficutl will be to implement the return of only ceratin Object Fruit, and assumming there are other properties perhaps only the name, but not the qty. or other extra data, even query and filter from the server returning a much smaller chunk of data in the client...

DinoLopez
Автор

Can you please show how the methods such as Post, put, head, options, delete can be mapped ..I wanted to learn how can I create a REST service using golang using the net/http package, as others have used martini package, mux router etc

arpitTCS
Автор

Really good video. :). Helped me a lot. :)

sudiptasaha
Автор

Next steps might be consolidate your structs into a shared package between the server and consumer...

BryanStenson
Автор

how can i receive json as post parameter?

caresvlbdjz
Автор

github URL is invalid, Please mention the correct URL.

kamal-xdid
Автор

and in PHP <?php echo json_encode(new array("Stuff" => array("Fruits" => array("Apples" => 25, "Oranges" => 11), "Vegetables" => array("Carrots" => 21, "Peppers" => 0))));

AapVanDieKaap
welcome to shbcf.ru