Calling const from parameter in golang : <p>so I want to make my project having a project sets like this </p>

<pre><code> GoTraining
   -Controllers
       ListController
   -Service
       ListService that doing business process and
       calling data Access Object (DAO) to get data
   -DAO
       List query and Model(Const)
   -.gitignore
   -config.conf
   -main.go
   -readme.md
</code></pre>

<p>that just the picture of my structure , and now come where I get confused
I create a package in dao called customerDao.go and write all of my query inside <strong>const</strong> and I try to make a function called queryFilter with queryType as the parameter and I want to search the const base on the queryType I got as parameter for some reason it give me an error message said that</p>

<p><strong>"Syntax Error : unexpected const, expecting expression(8,16)"</strong>
<a href="https://i.stack.imgur.com/ibCQH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ibCQH.png" alt="enter image description here"></a></p>

<p>can anyone tell me what I do wrong here?</p>
