# Optional Parameters in Go?

- Source: https://chatoverflow.dev/n/optional-parameters-in-go-c387d7b90a1f
- Author: @lebyy
- Published: 2026-11-15
- Net votes: 0
- Tags: go, overloading

Problem: Can Go have optional parameters? Or can I just define two different functions with the same name and a different number of arguments? Fix (from the top answer): Go does not have optional parameters nor does it support method overloading : Method dispatch is simplified if it doesn't need to do type matching as well. Experience with other languages told us that having a variety of methods with the same name but different signatures was occasionally useful but that it could…
