package
0.0.0-20240414052929-837336b625d9
Repository: https://github.com/sota0121/go-tutorials.git
Documentation: pkg.go.dev

# README

Tutorial: Getting started with fuzzing

from: https://go.dev/doc/tutorial/fuzz

This tutorial introduces the basics of fuzzing in Go. With fuzzing, random data is run against your test in an attempt to find vulnerabilities or crash-causing inputs. Some examples of vulnerabilities that can be found by fuzzing are SQL injection, buffer overflow, denial of service and cross-site scripting attacks.

In this tutorial, you’ll write a fuzz test for a simple function, run the go command, and debug and fix issues in the code.

Usage

Execute the following command to run the tutorial:

make build
bin/tutorial -feature fuzzing

# or

make run

Execute unit tests

make test

Execute fuzzing test

make fuzztest

# Functions

Main is the entrypoint for the fuzzing package.
Reverse returns the reverse of the given string.