A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 2547
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3502

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3502
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: geshi/geshi.php

Line Number: 3469

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3469
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: geshi/geshi.php

Line Number: 3502

Backtrace:

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3502
Function: _error_handler

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/geshi/geshi.php
Line: 3043
Function: parse_non_string_part

File: /www/wwwroot/pastebin.vip/stikked/application/libraries/Process.php
Line: 45
Function: parse_code

File: /www/wwwroot/pastebin.vip/stikked/application/models/Pastes.php
Line: 430
Function: syntax

File: /www/wwwroot/pastebin.vip/stikked/application/controllers/Main.php
Line: 592
Function: getPaste

File: /www/wwwroot/pastebin.vip/stikked/index.php
Line: 284
Function: require_once

Go language make() assignment - Pastebin.vip - paste tool since 2022!

Go language make() assignment

From , 3 Years ago, written in Go, viewed 237 times.
URL https://pastebin.vip/view/9f03268e
  1. /**
  2.  * Created with IntelliJ IDEA.
  3.  * User: liaojie
  4.  * Date: 12-9-9
  5.  * Time: 上午11:45
  6.  * To change this template use File | Settings | File Templates.
  7.  * Name: make分配
  8.  */
  9. package main
  10.  
  11. import "fmt"
  12.  
  13. func main() {
  14.  
  15.         //分配片结构;* p==零
  16.         var p *[]int = new([]int)
  17.         *p = make([]int, 100, 100) //这样写有点复杂,很容易就搞乱了
  18.         fmt.Println(p)
  19.  
  20.         //现在将V分配一个新的数组,100个整型
  21.         //写法一
  22.         //var v  []int = make([]int, 100)
  23.         //写法二:非常常用的写法,简节明了
  24.         v := make([]int, 100)
  25.         fmt.Println(v)
  26. }
  27.  
  28.  
  29. //go/5610

Reply to "Go language make() assignment"

Here you can reply to the paste above

captcha

https://burned.cc - Burn After Reading Website