FAQ
How would import and use both html/template and text/template in the same
go source file? I'm sure this is simple but I can't think of an easy way
to do it...

--

Search Discussions

  • Rémy Oudompheng at Nov 30, 2012 at 8:18 pm

    2012/11/30 <gjwatersjr@gmail.com>:
    How would import and use both html/template and text/template in the same go
    source file? I'm sure this is simple but I can't think of an easy way to do
    it...
    Please read this part of the specification:
    http://golang.org/ref/spec#Import_declarations
    You have to choose appropriate non-colliding names in your source file.

    Rémy.

    --

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupgolang-nuts @
categoriesgo
postedNov 30, '12 at 8:13p
activeNov 30, '12 at 8:18p
posts2
users2
websitegolang.org

2 users in discussion

Rémy Oudompheng: 1 post Gjwatersjr: 1 post

People

Translate

site design / logo © 2021 Grokbase