`fpath` 在这个 Go/Revel 控制器中是什么意思?

huangapple go评论86阅读模式
英文:

What is `fpath` in this Go/Revel controller?

问题

fpathimport声明中是指导入的包的路径。在给定的链接中,fpathgithub.com/robfig/revel/modules/static/app/controllers,它指定了要导入的包的位置。

英文:

https://github.com/robfig/revel/blob/master/modules/static/app/controllers/static.go

What is fpath in the import declaration?

答案1

得分: 3

看起来这是一种给包起别名的方式。非常酷。

http://golang.org/ref/spec#Import_declarations

英文:

Looks like it's a way to alias the package. Very cool.

http://golang.org/ref/spec#Import_declarations

huangapple
  • 本文由 发表于 2013年11月9日 12:16:46
  • 转载请务必保留本文链接:https://go.coder-hub.com/19872286.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定