ihkh: hawx.me/code/ihkh/views Index | Files

package views

import "hawx.me/code/ihkh/views"

Index

Package Files

common.go photostream.go sets.go tags.go views.go

Variables

var (
    Photostream = template.Must(template.New("photostream").Parse(photostream)).Execute
    Sets        = template.Must(template.New("sets").Parse(sets)).Execute
    Tags        = template.Must(template.New("tags").Parse(tags)).Execute
)

type Photo Uses

type Photo struct {
    Id     string
    Src    string
    Width  int
    Height int
}

type PhotosCtx Uses

type PhotosCtx struct {
    Title    string
    UserInfo UserInfo
    PrevPage string
    NextPage string
    Photos   []Photo
}

type Set Uses

type Set struct {
    Id    string
    Title string
}

type SetsCtx Uses

type SetsCtx struct {
    Title    string
    UserInfo UserInfo
    Sets     []Set
}

type TagsCtx Uses

type TagsCtx struct {
    Title    string
    UserInfo UserInfo
    Tags     []string
}

type UserInfo Uses

type UserInfo struct {
    Id         string
    PhotosUrl  string
    ProfileUrl string
    RealName   string
    UserName   string
}

func (UserInfo) Name Uses

func (info UserInfo) Name() string

Package views imports 1 packages (graph) and is imported by 1 packages. Updated 2016-07-20. Refresh now. Tools for package owners.