-4

As proposed here http://beego.me/docs/mvc/controller/config.md, I add parameters for MySQL user/password and when trying to access them (for example by using

beego.AppConfig.String("mysqluser"))

I get an "undefined: beego in beego.AppConfig" message. Any suggestions?

tgogos
  • 23,218
  • 20
  • 96
  • 128

1 Answers1

0

That was caused by a stupid mistake... I forgot to add the beego package... Try the following:

import "github.com/astaxie/beego"

tgogos
  • 23,218
  • 20
  • 96
  • 128
  • This should be an edit to your question. You can edit your question. – icza Jun 06 '16 at 10:26
  • Please use the edit link on your question to add additional information. The Post Answer button should be used only for complete answers to the question. - [From Review](/review/low-quality-posts/12593858) – Prasad Khode Jun 06 '16 at 11:19
  • @Prasad Khode that's an answer actually. The problem was solved after I imported the above package. – tgogos Jun 06 '16 at 11:34