Dividir o texto entre página incial e o conteúdo
Criar novo conteúdo
hugo new post/2016-07-22-como-usamos-o-slack-na-coderockr.md
Testar localmente
Dividir o texto entre página incial e o conteúdo
Criar novo conteúdo
hugo new post/2016-07-22-como-usamos-o-slack-na-coderockr.md
Testar localmente
package main | |
import ( | |
"fmt" | |
"bytes" | |
) | |
func main() { | |
b := NewBoard() | |
fmt.Println(b.BoardRepresentation()) |
package main | |
import ( | |
"fmt" | |
"bytes" | |
) | |
func main() { | |
b := NewBoard() | |
fmt.Println(b.BoardRepresentation()) |
type Reader interface { | |
Find(id entity.ID) (*entity.User, error) | |
FindByEmail(email string) (*entity.User, error) | |
FindByChangePasswordHash(hash string) (*entity.User, error) | |
FindByValidationHash(hash string) (*entity.User, error) | |
FindByChallengeSubmissionHash(hash string) (*entity.User, error) | |
FindByNickname(nickname string) (*entity.User, error) | |
FindAll() ([]*entity.User, error) | |
} |
type Repository interface { | |
Find(id entity.ID) (*entity.User, error) | |
FindByEmail(email string) (*entity.User, error) | |
FindByChangePasswordHash(hash string) (*entity.User, error) | |
FindByValidationHash(hash string) (*entity.User, error) | |
FindByChallengeSubmissionHash(hash string) (*entity.User, error) | |
FindByNickname(nickname string) (*entity.User, error) | |
FindAll() ([]*entity.User, error) | |
Update(user *entity.User) error | |
Store(user *entity.User) (entity.ID, error) |
package chess | |
import "bytes" | |
type piece struct { | |
representation string | |
} | |
type location struct { | |
current *piece |
package chess | |
type piece struct { | |
representation string | |
} | |
type location struct { | |
current *piece | |
} |
package contact | |
import ( | |
"strings" | |
"fmt" | |
) | |
type friends struct { | |
data []string | |
} |
package contact | |
import "fmt" | |
type person struct { | |
name string | |
friends []string | |
} | |
type friend struct { |
package ecommerce | |
import ( | |
"strconv" | |
) | |
type order struct { | |
pid productID | |
cid customerID | |
} |