rtf

package module
v0.0.0-...-39598e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2015 License: Apache-2.0 Imports: 8 Imported by: 0

README

#RTF

Frequently used template function for revel framework

Using

1. Import

Import in your revel project app/init.go file

import	_ "github.com/baiyuxiong/rtf"

2. Use in template file

{{now}}

Function list

###Number functions

  1. add
  2. ueq
  3. minus
  4. multiply
  5. divide
  6. less
  7. lte
  8. gte
  9. percentageToInt
  10. percent

Date and time functions

  1. timestamp
  2. year
  3. month
  4. week
  5. day
  6. today
  7. now
  8. formatTime
  9. dayLeft

String functions

  1. lower
  2. upper
  3. splitComma
  4. shortContent
  5. join
  6. contains
  7. replace
  8. md5
  9. raw
  10. randomNumeric
  11. randomAlphas
  12. randomNumeric

Others

  1. nil

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL