all repos — captcha @ b80c582b3330260a764c6fbd0f8d3e7f74164147

Go package captcha implements generation and verification of image and audio CAPTCHAs.

Update docs.
Dmitry Chestnykh dmitry@codingrobots.com
Sun, 11 Mar 2012 20:09:53 +0100
commit

b80c582b3330260a764c6fbd0f8d3e7f74164147

parent

da58f6dc5057932d9bc1e9f3eb3fcf326ec82ed9

2 files changed, 4 insertions(+), 10 deletions(-)

jump to
M README.mdREADME.md

@@ -43,7 +43,7 @@

Server provides an http.Handler which can serve image and audio representations of captchas automatically from the URL. It can also be used to reload captchas. Refer to Server function documentation for details, or -take a look at the example in "example" subdirectory. +take a look at the example in "capexample" subdirectory. Examples

@@ -211,6 +211,8 @@ NewImage returns a new audio captcha with the given digits, where each digit

must be in range 0-9. Digits are pronounced in the given language. If there are no sounds for the given language, English is used. +Possible values for lang are "en", "ru", "zh". + ### func (*Audio) EncodedLen func (a *Audio) EncodedLen() int

@@ -279,11 +281,3 @@

* While Image conforms to io.WriterTo interface, its WriteTo method returns 0 instead of the actual bytes written because png.Encode doesn't report this. - - -Subdirectories --------------- - -* capgen -* example -* generate
M captcha.gocaptcha.go

@@ -42,7 +42,7 @@ //

// Server provides an http.Handler which can serve image and audio // representations of captchas automatically from the URL. It can also be used // to reload captchas. Refer to Server function documentation for details, or -// take a look at the example in "example" subdirectory. +// take a look at the example in "capexample" subdirectory. package captcha import (