Call a function from another package in Go

前端 未结 5 448
予麋鹿
予麋鹿 2020-12-29 17:33

I have two files main.go which is under package main, and another file with some functions in the package called functions.

My question is:

5条回答
  •  清酒与你
    2020-12-29 18:22

    Export function getValue by making 1st character of function name capital, GetValue

提交回复
热议问题