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 main | |
import ( | |
"errors" | |
"fmt" | |
"reflect" | |
) | |
func main() { | |
funcs := map[string]interface{}{"foo": foo, "bar": bar} |
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 main | |
import ( | |
"fmt" | |
"time" | |
) | |
func main() { | |
t1, _ := time.Parse("2006-01-01", "2010-06-05") | |
fmt.Println(t1) |
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
var camelre = regexp.MustCompile(`_([a-z])`) | |
// ToUpperCamelCase is an NameFunc that converts strings from snake case to upper camel case. | |
func ToUpperCamelCase(s string) string { | |
return strings.ToUpper(string(s[0])) + camelre.ReplaceAllStringFunc(s[1:len(s)], func(s string) string { | |
return strings.ToUpper(s[1:len(s)]) | |
}) | |
} |
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 main | |
import ( | |
"bytes" | |
"fmt" | |
"log" | |
"os/exec" | |
"strings" | |
) |
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
FROM alpine:3.8 | |
MAINTAINER github.com/jony4 <[email protected]> | |
RUN apk add --no-cache luajit | |
ENTRYPOINT [ "/usr/bin/env", "luajit" ] |
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 main | |
import ( | |
"bytes" | |
"database/sql" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/url" |
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 suid | |
import ( | |
"fmt" | |
"math/big" | |
"github.com/google/uuid" | |
) | |
const ( |
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
FROM golang:1.12.5-alpine3.9 | |
RUN apk add --no-cache upx |
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
@charset "UTF-8"; | |
:root { | |
--control-text-color: #000000; | |
--side-bar-bg-color: #f6f8fa | |
} | |
#write { | |
max-width: 860px; | |
margin: 0 auto; | |
padding: 20px; |
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
/*自定义样式,实时生效*/ | |
/* 全局属性 | |
* 页边距 padding:30px; | |
* 全文字体 font-family:ptima-Regular; | |
* 英文换行 word-break:break-all; | |
*/ | |
.layout { | |
font-family:PingFangSC-Light; | |
} |
OlderNewer