---
title: "Discussion on \"Always use typed arguments for functions in Go\" | Hashnode"
description: "Discussion on \"Always use typed arguments for functions in Go\". Consider you have a function, that accepts two string arguments such as apiKey and apiSecret. Here is a pseudo function to address the problem:\nfunc fooClient(apiKey, apiSecret string) error {\n    // do the implementation here...\n    panic(\"not imple..."
url: "https://hashnode.com/posts/always-use-typed-arguments-for-functions-in-go/64fda9fb03074625610c2d9c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Always use typed arguments for functions in Go](https://vigos.hashnode.dev/always-use-typed-arguments-for-functions-in-go?utm_source=hashnode&utm_medium=feed)

Consider you have a function, that accepts two string arguments such as apiKey and apiSecret. Here is a pseudo function to address the problem: func fooClient(apiKey, apiSecret string) error { // do the implementation here... panic("not imple...

Sep 10, 2023 · 3 min read · vigos.hashnode.dev  
Read the article

-   [#go](https://hashnode.com/tag/go)

## Written by

[Uğur Özyılmazel](https://hashnode.com/@vigo)

@vigo · İstanbul, Turkey

  
[View profile](https://hashnode.com/@vigo)

SYS 64738

Oldskool Commodore 64 and Amiga Scener, Coder, Founder, Organizer. Gopher, Ruby lover, Python user. I like mostly development stuff.

## Responses

Comments are turned off for this post.
