Skip to content

wenlng/go-captcha-example

Repository files navigation

Go Captcha

Go Captcha Example Projects


English | 中文

Go Captcha is a behavior CAPTCHA, which implements text click verification, slide verification and rotation verification.

⭐️ If it helps you, please give a star.


Poster


git clone https://github.com/wenlng/go-captcha-example.git
cd go-captcha-example
go mod download
go run main.go

Open in browser: http://127.0.0.1:9001/go-captcha-example


Directory structure

|-internal
  |-app
  |-cache
  |-logic
    |-captdata
      |-click_basic.go      // Generation data for text click
      |-click_shape.go      // Generation data for shape click
      |-rotate_basic.go     // Generation data for rotate
      |-slide_basic.go      // Generation data for slide
      |-slide_region.go     // Generation data for drag region
    |-checkdata
      |-click.go            // Check data for text
      |-rotate.go           // Check data for rotate
      |-slide.go            // Check data for slide
|-web
  |-native                // Js+Html+Css example
  |-bower                 // Js+Html+Css example, bower tool
  |-vue                   // Vue3 example
  |-vue2                  // Vue2 example
  |-react                 // React example
  |-angular               // Angular example
  |-solid                 // Solid example
  |-svelte                // Svelte example