thestrukture/IDE

View on GitHub
api/methods/method_IsExpired.go

Summary

Maintainability
A
0 mins
Test Coverage
F
0%
// File generated by Gopher Sauce
// DO NOT EDIT!!
package methods

import "time"

//
func IsExpired(args ...interface{}) bool {
    current := args[0]
    strip := args[1]

    if time.Now().Unix() > current.(int64) {
        if strip.(string) == "" {
            return true
        } else {
            return false
        }
    }

    return false

}