Overall writeup http://emile.space
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

24 lines
855 B

  1. %% Golang definition for listings
  2. %% http://github.io/julienc91/lstlistings-golang
  3. %%
  4. \RequirePackage{listings}
  5. \lstdefinelanguage{Golang}%
  6. {morekeywords=[1]{package,import,func,type,struct,return,defer,panic,%
  7. recover,select,var,const,iota,},%
  8. morekeywords=[2]{string,uint,uint8,uint16,uint32,uint64,int,int8,int16,%
  9. int32,int64,bool,float32,float64,complex64,complex128,byte,rune,uintptr,%
  10. error,interface},%
  11. morekeywords=[3]{map,slice,make,new,nil,len,cap,copy,close,true,false,%
  12. delete,append,real,imag,complex,chan,},%
  13. morekeywords=[4]{for,break,continue,range,go,goto,switch,case,fallthrough,if,%
  14. else,default,},%
  15. morekeywords=[5]{Println,Printf,Error,Print,},%
  16. sensitive=true,%
  17. morecomment=[l]{//},%
  18. morecomment=[s]{/*}{*/},%
  19. morestring=[b]',%
  20. morestring=[b]",%
  21. morestring=[s]{`}{`},%
  22. }