nathankerr / rest Goto Github PK
View Code? Open in Web Editor NEWRESTful HTTP service engine for Go
License: MIT License
RESTful HTTP service engine for Go
License: MIT License
All method (GET, POST, PUT, and DELETE) need access to the incoming http.Request. Access to the request headers and the query string parameters is required for many implementations of the methods. For example, the 'Accept' header tells the service what content type to send back to the client. Additionally, content can be filtered by query string parameters.
Automated tests should be added.
I tried to execute "goinstall github.com/nathankerr/rest.go" on my Mac, and got the following error.
/usr/local/git/bin/git: === cd /; git clone http://github.com/nathankerr/rest.go.git /local/go/src/pkg/github.com/nathankerr/rest.go
Initialized empty Git repository in /local/go/src/pkg/github.com/nathankerr/rest.go/.git/
error: The requested URL returned error: 403 while accessing http://github.com/nathankerr/rest.go.git/info/refs
fatal: HTTP request failed
--- exit status 128
goinstall: github.com/nathankerr/rest.go: running git: exit status 128
rest.NewClient() creates a new rest.Client, which opens a net.Conn. There is no method to close this connection.
Add a rest.Client.Close() method to close the connection.
Hi,
I updated my go using weekly.
I am able to run the goinstall github.com/nathankerr/rest.go
But when I run the code using rest.go, I get the following error .
try.go:6: import /home/chinmay/NewGo/go//pkg/linux_amd64/github.com/nathankerr/rest.go.a: object is [linux amd64 release.r57.2 8306] expected [linux amd64 weekly.2011-07-07 9017]
Please help asap.
I'm not entirely sure if this is an issue since I cannot determine what the current version of go is. This is the version I got when doing an 'apt-get install golang' on the latest Ubuntu. Most of the issues seem to surround the fact that the URL type has moved from the http package to the url package.
According to effective-go, one-method-interface should be named _methodname-_er . Is there a reason they are not?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.