This file contains 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
host: <%= ENV['MEMSQL_HOST'] %> | |
username: <%= ENV['MEMSQL_USERNAME'] %> | |
password: <%= ENV['MEMSQL_PASSWORD'] %> | |
port: <%= ENV['MEMSQL_PORT'] %> |
This file contains 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 main | |
import "errors" | |
func main() { | |
_ = errors.New("puncs, no caps.") // lint catches it | |
_ = errors.New("Caps, puncs.") // lint catches it | |
_ = errors.New("Caps, no puncs") // lint doesn't catch it | |
} |
This file contains 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
// What we originally had | |
namespace Example | |
{ | |
public class UserMapProfile : Profile | |
{ | |
public UserMapProfile() | |
{ | |
CreateMap<ExternalUser, InternalUser>() | |
.ForMember(dest => dest.Name, opt => opt.MapFrom(src => src.Profile.DisplayName)) | |
} |