This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package views | |
import ( | |
"encoding/json" | |
"time" | |
) | |
type Timestamp time.Time | |
func (t Timestamp) MarshalJSON() ([]byte, error) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"env": { | |
"GOPATH": "/home/windyzboy/project/go", | |
"GOROOT": "/usr/local/go" | |
}, | |
"on_save": | |
[{ | |
"cmd": "gs9o_open", "args": { | |
"run": ["clear"], | |
"focus_view": false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case get_format(conn) do | |
"json" -> | |
cond do | |
kind == :error -> | |
case reason.__struct__ do | |
Ecto.NoResultsError -> | |
error_view = "404.json" | |
App.Utils.Error.NotFound -> | |
error_view = "404.json" |
NewerOlder