Profile cover photo
Profile photo
Diego Medina
153 followers
153 followers
About
Diego's interests
View all
Diego's posts

Post has attachment

Post has shared content

Post has attachment
What a thought can do
What a thought can do. For quite some time I have been thinking of different ways I could improve my life and the life of others. And one tool that has been with me all this time is my thoughts. Many would say that a thought isn't really anything that would...

Post has attachment
From Reluctance to Reverence: A Yogini's Journey
Eight years ago, when my husband finally convinced me to try yoga, I approached it with serious skepticism. Yoga, I thought, was for those who could not handle the weight and interval training that I was accustomed to. At that time, my yoga days masqueraded...

Post has attachment

Post has attachment
Diego Medina commented on a post on Blogger.
there is actually an even simpler way to dump json to a response.

json.NewEncoder(rw).Encode( Response{"success": true, "message": "Hello!"} )

where rw is the ResponseWriter from the handlerFunc

in context, it would be:

func myHandler(rw http.ResponseWriter, req *http.Request) {
        ...
        rw.Header().Set("Content-Type", "application/json")
        json.NewEncoder(rw).Encode( Response{"success": true, "message": "Hello!"} )
}

Post has attachment
Which one is the real cat?
Photo

you know you live in a small town when mail sent to your home under a different name gets a question mark added by the local post office :)

Post has attachment
Colorful Country Home! 2 bedrooms , 3 full bathrooms, 1170 sq. ft. on main level, with an additional 562 sq ft downstairs, currently being used as an office. Separate entrance to the downstairs. Full of potential. Main level has beautiful wood floors, large open kitchen, lots of natural light, central AC and heat, master suite and a million dollar mountain view. Attached two car garage. 0.46 private wooded lot, quiet neighborhood, great schools. Close to downtown Etowah, shops, restaurants, renovated grocery store and golf course. #realestate   #mountainview   #asheville  

Post has shared content
This is how we do things and it always works great!
Wait while more posts are being loaded